-fvisibility=hidden is a compiler option, don't pass it to the linker.

This commit is contained in:
Yamagi 2020-10-08 11:58:14 +02:00
parent bf83db4d6d
commit e9a0162eea

View file

@ -134,7 +134,9 @@ endif
# to get it there... # to get it there...
# -fwrapv for defined integer wrapping. MSVC6 did this # -fwrapv for defined integer wrapping. MSVC6 did this
# and the game code requires it. # 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 # -MMD to generate header dependencies. Unsupported by
# the Clang shipped with OS X. # the Clang shipped with OS X.
@ -294,10 +296,6 @@ else ifeq ($(YQ2_OSTYPE), Haiku)
override LDFLAGS += -lm -lnetwork override LDFLAGS += -lm -lnetwork
endif endif
# Keep symbols hidden.
override CFLAGS += -fvisibility=hidden
override LDFLAGS += -fvisibility=hidden
ifneq ($(YQ2_OSTYPE), Darwin) ifneq ($(YQ2_OSTYPE), Darwin)
ifneq ($(YQ2_OSTYPE), OpenBSD) ifneq ($(YQ2_OSTYPE), OpenBSD)
# For some reason the OSX & OpenBSD # For some reason the OSX & OpenBSD