# HG changeset patch # User apangin # Date 1235351516 28800 # Node ID a53107650e8ba2bcfc27371c6708ba948afd05d6 # Parent 3264b1424f72897e9f316dc18776c39c07520b69# Parent a0576ae7045fb129435d39a80762203ab17197bf Merge diff -r a0576ae7045f -r a53107650e8b make/linux/makefiles/gcc.make --- a/make/linux/makefiles/gcc.make Fri Feb 20 11:12:26 2009 -0800 +++ b/make/linux/makefiles/gcc.make Sun Feb 22 17:11:56 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