6799141: Build with --hash-style=both so that binaries can work on SuSE 10

Sat, 31 Jan 2009 17:19:42 -0800

author
ohair
date
Sat, 31 Jan 2009 17:19:42 -0800
changeset 1011
69c752d99841
parent 938
809e899c638b
child 1012
f9d5cfc2afa2
child 1024
01ddca3f0730

6799141: Build with --hash-style=both so that binaries can work on SuSE 10
Reviewed-by: tbell

make/linux/makefiles/gcc.make file | annotate | diff | comparison | revisions
     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