forked from fte/fteqw
1
0
Fork 0

Make visibility=hidden more aggressive to fix vulkan segfaults and probably some other things too.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6120 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-11-10 01:36:00 +00:00
parent 39add9730f
commit f8e355e990
1 changed files with 4 additions and 12 deletions

View File

@ -31,6 +31,7 @@ STRIP?=strip
STRIPFLAGS=--strip-unneeded --remove-section=.comment STRIPFLAGS=--strip-unneeded --remove-section=.comment
VISIBILITY_FLAGS=-fvisibility=hidden #just assume this for sanities sake. disable only for compilers that error.
CPUOPTIMIZATIONS=-Os CPUOPTIMIZATIONS=-Os
COMPILE_SYS:=$(shell uname -o 2>&1) COMPILE_SYS:=$(shell uname -o 2>&1)
@ -591,6 +592,7 @@ DO_CXX=$(DO_ECHO) $(CXX) $(LTO_CC) $(ALL_CXXFLAGS) -o $@ -c $<
ifeq ($(findstring msvc,$(FTE_TARGET)),msvc) ifeq ($(findstring msvc,$(FTE_TARGET)),msvc)
BASELDFLAGS= BASELDFLAGS=
VISIBILITY_FLAGS=
endif endif
ifeq ($(FTE_TARGET),cyg) ifeq ($(FTE_TARGET),cyg)
BASELDFLAGS=-lm BASELDFLAGS=-lm
@ -601,18 +603,9 @@ endif
ifeq ($(FTE_TARGET),morphos) ifeq ($(FTE_TARGET),morphos)
BASELDFLAGS=-lm BASELDFLAGS=-lm
endif endif
ifneq (,$(findstring bsd,$(FTE_TARGET))) ifneq (,$(findstring bsd,$(FTE_TARGET)))
BASELDFLAGS=-lm BASELDFLAGS=-lm
VISIBILITY_FLAGS=-fvisibility=hidden
endif
ifneq (,$(findstring linux,$(FTE_TARGET)))
VISIBILITY_FLAGS=-fvisibility=hidden
endif
ifneq (,$(findstring droid,$(FTE_TARGET)))
VISIBILITY_FLAGS=-fvisibility=hidden
endif
ifneq (,$(findstring macos,$(FTE_TARGET)))
VISIBILITY_FLAGS=-fvisibility=hidden
endif endif
BASELDFLAGS ?= -lm -ldl -lpthread BASELDFLAGS ?= -lm -ldl -lpthread
@ -629,7 +622,6 @@ ifeq (win,$(findstring cyg,$(FTE_TARGET))$(findstring win,$(FTE_TARGET)))
endif endif
OGGVORBISLDFLAGS ?= -lvorbisfile -lvorbis -logg OGGVORBISLDFLAGS ?= -lvorbisfile -lvorbis -logg
VISIBILITY_FLAGS?=
#BASELDFLAGS=-lm -lz #BASELDFLAGS=-lm -lz
XLDFLAGS=-L$(ARCHLIBS) $(IMAGELDFLAGS) XLDFLAGS=-L$(ARCHLIBS) $(IMAGELDFLAGS)
@ -651,7 +643,7 @@ CLIENT_ONLY_CFLAGS=-DCLIENTONLY
SERVER_ONLY_CFLAGS=-DSERVERONLY SERVER_ONLY_CFLAGS=-DSERVERONLY
JOINT_CFLAGS= JOINT_CFLAGS=
DEBUG_CFLAGS?=-ggdb -g DEBUG_CFLAGS?=-ggdb -g
DEBUG_CFLAGS+=-DDEBUG DEBUG_CFLAGS+=-DDEBUG -D_DEBUG
RELEASE_CFLAGS?=$(CPUOPTIMIZATIONS) RELEASE_CFLAGS?=$(CPUOPTIMIZATIONS)
# #
#note: RELEASE_CFLAGS used to contain -ffast-math #note: RELEASE_CFLAGS used to contain -ffast-math