6837224: libsaproc.so on linux needs version of 6799141

Mon, 04 May 2009 22:06:47 -0700

author
never
date
Mon, 04 May 2009 22:06:47 -0700
changeset 1189
2b25645dab33
parent 1179
af5d39ca39a3
child 1190
36ee9b69616e

6837224: libsaproc.so on linux needs version of 6799141
Reviewed-by: kvn

agent/src/os/linux/Makefile file | annotate | diff | comparison | revisions
     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)

mercurial