comparison agent/src/os/linux/Makefile @ 754:2b25645dab33

6837224: libsaproc.so on linux needs version of 6799141 Reviewed-by: kvn
author never
date Mon, 04 May 2009 22:06:47 -0700
parents a61af66fc99e
children bd02caa94611
comparison
equal deleted inserted replaced
744:af5d39ca39a3 754:2b25645dab33
58 58
59 ifndef LDNOMAP 59 ifndef LDNOMAP
60 LFLAGS_LIBSA = -Xlinker --version-script=mapfile 60 LFLAGS_LIBSA = -Xlinker --version-script=mapfile
61 endif 61 endif
62 62
63 # If this is a --hash-style=gnu system, use --hash-style=both
64 # The gnu .hash section won't work on some Linux systems like SuSE 10.
65 _HAS_HASH_STYLE_GNU:=$(shell $(CC) -dumpspecs | grep -- '--hash-style=gnu')
66 ifneq ($(_HAS_HASH_STYLE_GNU),)
67 LDFLAGS_HASH_STYLE = -Wl,--hash-style=both
68 endif
69 LFLAGS_LIBSA += $(LDFLAGS_HASH_STYLE)
70
63 $(LIBSA): $(OBJS) mapfile 71 $(LIBSA): $(OBJS) mapfile
64 if [ ! -d $(ARCH) ] ; then mkdir $(ARCH) ; fi 72 if [ ! -d $(ARCH) ] ; then mkdir $(ARCH) ; fi
65 $(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS) 73 $(GCC) -shared $(LFLAGS_LIBSA) -o $(LIBSA) $(OBJS) $(LIBS)
66 74
67 test.o: test.c 75 test.o: test.c