]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add -fno-omit-frame-pointer when building libpthread.so as that gets
authorTom Hughes <tom@compton.nu>
Thu, 28 Oct 2004 13:47:14 +0000 (13:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 28 Oct 2004 13:47:14 +0000 (13:47 +0000)
loaded into the user's program and we want to be able to trace the
stack properly. Also add -fpic given that the code is going into a
shared library.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2869

coregrind/Makefile.am

index 7d5626715c3f2ab0953ac6068842947f80b1e4b1..c70d39b41e63ac1ba3bee04c76a623f9c1a8cd67 100644 (file)
@@ -129,6 +129,7 @@ libpthread_so_SOURCES = \
        ${VG_ARCH}/libpthread.c \
        ${VG_PLATFORM}/syscall.S
 libpthread_so_DEPENDENCIES = $(srcdir)/vg_libpthread.vs
+libpthread_so_CFLAGS = $(AM_CFLAGS) -fpic -fno-omit-frame-pointer
 libpthread_so_LDFLAGS     = -Werror -fno-omit-frame-pointer -UVG_LIBDIR \
        -shared -ldl \
        -Wl,-version-script $(srcdir)/vg_libpthread.vs \