Nicholas Nethercote d343add11a Build vg_replace_malloc.c into a library, because it makes the Makefiles a bit
neater.  Also remove some dodgy CFLAGS+= lines.

I had to change the expected output of pth_once.c, because the change has
altered the order of the (non-deterministic) output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2825
2004-10-20 18:40:40 +00:00

19 lines
532 B
Makefile

include $(top_srcdir)/Makefile.tool.am
val_PROGRAMS = vgskin_helgrind.so vgpreload_helgrind.so
vgskin_helgrind_so_SOURCES = hg_main.c
vgskin_helgrind_so_LDFLAGS = -shared
vgpreload_helgrind_so_SOURCES =
vgpreload_helgrind_so_DEPENDENCIES = $(top_builddir)/coregrind/lib_replace_malloc.a
vgpreload_helgrind_so_LDFLAGS = -shared -Wl,-z,interpose,-z,initfirst \
-Wl,--whole-archive \
$(top_builddir)/coregrind/lib_replace_malloc.a \
-Wl,--no-whole-archive
hgincludedir = $(includedir)/valgrind
hginclude_HEADERS = helgrind.h