1.1 --- a/agent/src/os/linux/Makefile Thu Apr 30 15:57:29 2009 -0700 1.2 +++ b/agent/src/os/linux/Makefile Mon May 04 22:06:47 2009 -0700 1.3 @@ -60,6 +60,14 @@ 1.4 LFLAGS_LIBSA = -Xlinker --version-script=mapfile 1.5 endif 1.6 1.7 +# If this is a --hash-style=gnu system, use --hash-style=both 1.8 +# The gnu .hash section won't work on some Linux systems like SuSE 10. 1.9 +_HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu') 1.10 +ifneq ($(_HAS_HASH_STYLE_GNU),) 1.11 + LDFLAGS_HASH_STYLE = -Wl,--hash-style=both 1.12 +endif 1.13 +LFLAGS_LIBSA += $(LDFLAGS_HASH_STYLE) 1.14 + 1.15 $(LIBSA): $(OBJS) mapfile 1.16 if [ ! -d $(ARCH) ] ; then mkdir $(ARCH) ; fi 1.17 $(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS)