missed an "endif", make symbols hidden by default

This commit is contained in:
Albert Cahalan 2008-05-04 17:07:04 +00:00
parent e92706e3af
commit c8df236b92
2 changed files with 6 additions and 1 deletions

View file

@ -31,6 +31,7 @@ OS:=beos
else else
OS:=linux OS:=linux
endif endif
endif
windows_SO_TYPE:=dll windows_SO_TYPE:=dll
osx_SO_TYPE:=bundle osx_SO_TYPE:=bundle
@ -158,9 +159,13 @@ ARCH_LIBS:=obj/postscript_print.o
# The entire set of CFLAGS: # The entire set of CFLAGS:
# FIXME: src/test-option.sh runs every time
# FIXME: -Wstrict-aliasing=2 not used
#-ffast-math #-ffast-math
OPTFLAGS:=-O2 OPTFLAGS:=-O2
CFLAGS:=$(OPTFLAGS) -W -Wall -fno-common -ffloat-store \ CFLAGS:=$(OPTFLAGS) -W -Wall -fno-common -ffloat-store \
-fvisibility=hidden \
-Wcast-align -Wredundant-decls \ -Wcast-align -Wredundant-decls \
-Wbad-function-cast -Wwrite-strings \ -Wbad-function-cast -Wwrite-strings \
-Waggregate-return \ -Waggregate-return \

View file

@ -19,7 +19,7 @@ SO_TYPE:=so
TP_MAGIC_CFLAGS:=$(shell if [ -x tp-magic-config ] ; then tp-magic-config --cflags ; else echo -I../src/ ; fi) TP_MAGIC_CFLAGS:=$(shell if [ -x tp-magic-config ] ; then tp-magic-config --cflags ; else echo -I../src/ ; fi)
SDL_CFLAGS:=$(shell sdl-config --cflags) SDL_CFLAGS:=$(shell sdl-config --cflags)
CFLAGS:=-g3 -O2 -W -Wstrict-prototypes -Wmissing-prototypes -Wall $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS) CFLAGS:=-g3 -O2 -fvisibility=hidden -fno-common -W -Wstrict-prototypes -Wmissing-prototypes -Wall $(SDL_CFLAGS) $(TP_MAGIC_CFLAGS)
SHARED_FLAGS:=-shared -fpic SHARED_FLAGS:=-shared -fpic
SDL_MIXER_LIB:=-lSDL_mixer SDL_MIXER_LIB:=-lSDL_mixer