make/linux/makefiles/gcc.make

changeset 1011
69c752d99841
parent 670
9c2ecc2ffb12
child 1014
0fbdb4381b99
     1.1 --- a/make/linux/makefiles/gcc.make	Thu Jan 15 11:46:26 2009 -0800
     1.2 +++ b/make/linux/makefiles/gcc.make	Sat Jan 31 17:19:42 2009 -0800
     1.3 @@ -131,6 +131,14 @@
     1.4  # Enable linker optimization
     1.5  LFLAGS += -Xlinker -O1
     1.6  
     1.7 +# If this is a --hash-style=gnu system, use --hash-style=both
     1.8 +#   The gnu .hash section won't work on some Linux systems like SuSE 10.
     1.9 +_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu')
    1.10 +ifneq ($(_HAS_HASH_STYLE_GNU),)
    1.11 +  LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
    1.12 +endif
    1.13 +LFLAGS += $(LDFLAGS_HASH_STYLE)
    1.14 +
    1.15  # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
    1.16  MAPFLAG = -Xlinker --version-script=FILENAME
    1.17  

mercurial