From: Tom Hughes Date: Thu, 28 Oct 2004 13:47:14 +0000 (+0000) Subject: Add -fno-omit-frame-pointer when building libpthread.so as that gets X-Git-Tag: svn/VALGRIND_3_0_0~1433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77c5cb0085bea0a1cf8d280f0abedca581f3f098;p=thirdparty%2Fvalgrind.git Add -fno-omit-frame-pointer when building libpthread.so as that gets 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 --- diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am index 7d5626715c..c70d39b41e 100644 --- a/coregrind/Makefile.am +++ b/coregrind/Makefile.am @@ -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 \