Merge
authorapangin
Sun Feb 15 20:09:02 2009 -0800 (13 months ago)
changeset 5903264b1424f72
parent 549fe3d7c11b4b7
parent 58901ddca3f0730
child 591a53107650e8b
child 59282e4d969e7cb
Merge
--- a/make/linux/makefiles/gcc.make Tue Feb 10 18:39:09 2009 +0300
+++ b/make/linux/makefiles/gcc.make Sun Feb 15 20:09:02 2009 -0800
@@ -131,6 +131,14 @@ endif
# 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