# HG changeset patch # User never # Date 1241500007 25200 # Node ID 2b25645dab33e7d01777bfd8445c31152b71b820 # Parent af5d39ca39a3b1edd5bb30b564d5755752901cdb 6837224: libsaproc.so on linux needs version of 6799141 Reviewed-by: kvn diff -r af5d39ca39a3 -r 2b25645dab33 agent/src/os/linux/Makefile --- a/agent/src/os/linux/Makefile Thu Apr 30 15:57:29 2009 -0700 +++ b/agent/src/os/linux/Makefile Mon May 04 22:06:47 2009 -0700 @@ -60,6 +60,14 @@ 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)