mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 21:30:36 +00:00
Fix build on OSX
This commit is contained in:
parent
aaa73236ec
commit
c901ad9bb6
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -253,7 +253,12 @@ LDFLAGS := $(OSX_ARCH) -lm
|
|||
endif
|
||||
|
||||
CFLAGS += -fvisibility=hidden
|
||||
LDFLAGS += -fvisibility=hidden -Wl,--no-undefined
|
||||
LDFLAGS += -fvisibility=hidden
|
||||
|
||||
ifneq ($(OSTYPE), Darwin)
|
||||
# for some reason the OSX linker doesn't support this
|
||||
LDFLAGS += -Wl,--no-undefined
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
||||
|
@ -549,6 +554,8 @@ ifeq ($(WITH_SDL2),yes)
|
|||
release/ref_gl.dylib : CFLAGS += -DSDL2
|
||||
endif
|
||||
|
||||
release/ref_gl.dylib : LDFLAGS += -shared
|
||||
|
||||
else # not Windows or Darwin
|
||||
|
||||
ref_gl:
|
||||
|
|
Loading…
Reference in a new issue