mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
-fvisibility=hidden is a compiler option, don't pass it to the linker.
This commit is contained in:
parent
bf83db4d6d
commit
e9a0162eea
1 changed files with 3 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -134,7 +134,9 @@ endif
|
|||
# to get it there...
|
||||
# -fwrapv for defined integer wrapping. MSVC6 did this
|
||||
# and the game code requires it.
|
||||
override CFLAGS += -std=gnu99 -fno-strict-aliasing -fwrapv
|
||||
# -fvisibility=hidden to keep symbols hidden. This is
|
||||
# mostly best practice and not really necessary.
|
||||
override CFLAGS += -std=gnu99 -fno-strict-aliasing -fwrapv -fvisibility=hidden
|
||||
|
||||
# -MMD to generate header dependencies. Unsupported by
|
||||
# the Clang shipped with OS X.
|
||||
|
@ -294,10 +296,6 @@ else ifeq ($(YQ2_OSTYPE), Haiku)
|
|||
override LDFLAGS += -lm -lnetwork
|
||||
endif
|
||||
|
||||
# Keep symbols hidden.
|
||||
override CFLAGS += -fvisibility=hidden
|
||||
override LDFLAGS += -fvisibility=hidden
|
||||
|
||||
ifneq ($(YQ2_OSTYPE), Darwin)
|
||||
ifneq ($(YQ2_OSTYPE), OpenBSD)
|
||||
# For some reason the OSX & OpenBSD
|
||||
|
|
Loading…
Reference in a new issue