Skip to content
Snippets Groups Projects
Commit 2cb2d203 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Apparently -framework is a link flag, not a compile one

parent 50f3281d
No related branches found
No related tags found
No related merge requests found
Pipeline #6162 failed
......@@ -436,19 +436,13 @@ else
endif
SHLIBOPTS := -shared
ifeq ($(os),darwin)
MKSHLIB := libtool -dynamic -framework System -lcc_dynamic
MKSHPPLIB := libtool -dynamic -framework System -lcc_dynamic -lstdc++
SHLIBOPTS :=
ifeq ($(os),sunos)
MKSHLIB := /usr/ccs/bin/ld -G
MKSHPPLIB := /usr/ccs/bin/ld -G
SHLIBOPTS :=
else
ifeq ($(os),sunos)
MKSHLIB := /usr/ccs/bin/ld -G
MKSHPPLIB := /usr/ccs/bin/ld -G
SHLIBOPTS :=
else
MKSHLIB := $(CC)
MKSHPPLIB := $(CXX)
endif
MKSHLIB := $(CC)
MKSHPPLIB := $(CXX)
endif
# Paths
......
......@@ -103,7 +103,7 @@ ifdef USE_SDL
ifeq ($(os),darwin)
ifeq ($(shell if [ -d /Library/Frameworks/SDL2.framework ] ; then echo YES ; fi),YES)
SDL_FRAMEWORK_PATH ?= /Library/Frameworks
CFLAGS += -F${SDL_FRAMEWORK_PATH} -framework SDL2
CFLAGS += -F${SDL_FRAMEWORK_PATH}
endif
ifdef SDL_FRAMEWORK_PATH
WITH_SDL := 1
......
......@@ -105,7 +105,7 @@ ifdef USE_SDL_AUDIO
ifeq ($(os),darwin)
ifeq ($(shell if [ -d /Library/Frameworks/SDL2.framework ] ; then echo YES ; fi),YES)
SDL_FRAMEWORK_PATH ?= /Library/Frameworks
CFLAGS += -F${SDL_FRAMEWORK_PATH} -framework SDL2
CFLAGS += -F${SDL_FRAMEWORK_PATH}
endif
ifdef SDL_FRAMEWORK_PATH
WITH_SDL_AUDIO := 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment