aboutsummaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorkvn <none@none>2009-05-07 17:09:48 -0700
committerkvn <none@none>2009-05-07 17:09:48 -0700
commitaae8134fe800b1fa53d9941eddf2503e55f1981c (patch)
treebe7cba5bc0f94dda16f221f6250b9eea1427d1fe /agent
parent75d1f73a189630ed392d3a3182ce1a1b309c2245 (diff)
parent1d2b36f6b543e63882f464ade4761effbd3cdece (diff)
Merge
Diffstat (limited to 'agent')
-rw-r--r--agent/src/os/linux/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/src/os/linux/Makefile b/agent/src/os/linux/Makefile
index e243171bc..c7b64107b 100644
--- a/agent/src/os/linux/Makefile
+++ b/agent/src/os/linux/Makefile
@@ -60,6 +60,14 @@ ifndef LDNOMAP
LFLAGS_LIBSA = -Xlinker --version-script=mapfile
endif
+# 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_LIBSA += $(LDFLAGS_HASH_STYLE)
+
$(LIBSA): $(OBJS) mapfile
if [ ! -d $(ARCH) ] ; then mkdir $(ARCH) ; fi
$(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS)