# HG changeset patch # User apangin # Date 1234757342 28800 # Node ID 57c4d9c2bc0c42675ffc7f620bd1d272a12c8bdb # Parent 49e915da09054c851980467eaee4c3edc8007f04# Parent 28000d78abfa686ae0a5841b2d15a333b05eaec3 Merge diff -r 49e915da0905 -r 57c4d9c2bc0c hotspot/make/linux/makefiles/gcc.make --- a/hotspot/make/linux/makefiles/gcc.make Tue Feb 10 18:39:09 2009 +0300 +++ b/hotspot/make/linux/makefiles/gcc.make Sun Feb 15 20:09:02 2009 -0800 @@ -131,6 +131,14 @@ # Enable linker optimization LFLAGS += -Xlinker -O1 +# If this is a --hash-style=gnu system, use --hash-style=both +# The gnu .hash section won't work on some Linux systems like SuSE 10. +_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu') +ifneq ($(_HAS_HASH_STYLE_GNU),) + LDFLAGS_HASH_STYLE = -Wl,--hash-style=both +endif +LFLAGS += $(LDFLAGS_HASH_STYLE) + # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. MAPFLAG = -Xlinker --version-script=FILENAME