make/linux/makefiles/gcc.make

changeset 2507
d70fe6ab4436
parent 2362
a5610f0862fe
child 2683
7e88bdae86ec
     1.1 --- a/make/linux/makefiles/gcc.make	Thu Jan 27 16:11:27 2011 -0800
     1.2 +++ b/make/linux/makefiles/gcc.make	Tue Feb 01 11:23:19 2011 -0500
     1.3 @@ -75,6 +75,11 @@
     1.4  CFLAGS += -fno-exceptions
     1.5  CFLAGS += -D_REENTRANT
     1.6  CFLAGS += -fcheck-new
     1.7 +# version 4 and above support fvisibility=hidden (matches jni_x86.h file)
     1.8 +# except 4.1.2 gives pointless warnings that can't be disabled (afaik)
     1.9 +ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
    1.10 +CFLAGS += -fvisibility=hidden
    1.11 +endif
    1.12  
    1.13  ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
    1.14  ARCHFLAG/i486    = -m32 -march=i586

mercurial