# HG changeset patch # User xdono # Date 1236624210 25200 # Node ID f5eac45b1641baac42bd5ee0fd0e46ba4931a71a # Parent f9d5cfc2afa2b9bb1641e7f19531329c19546625# Parent 67f831f73d3421d955118446c3288dba07b71b4a Merge diff -r 67f831f73d34 -r f5eac45b1641 make/linux/makefiles/gcc.make --- a/make/linux/makefiles/gcc.make Thu Mar 05 09:49:03 2009 -0800 +++ b/make/linux/makefiles/gcc.make Mon Mar 09 11:43:30 2009 -0700 @@ -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