ports/devel/valgrind-snapshot/files/patch-Makefile.am
Simon Barner d711a485a0 - Fix on FreeBSD 6 and above: [1] [2]
Valgrind did not handle the following sysarch calls, and thus crashed
  immediately
    o get_fsbase
    o set_fsbase
    o get_gsbase
    o set_fsbase

- Valgrind no longer dumps core when its client application does. [2]

  Valgrind-snapshot does contain for safing the client's core dump,
  but it does not work (it resulted in a crash) and has therefore been
  disabled.

- Fix crash with valgrind-snapshot when the application to debug
  does not exists or cannot be accessed.

- Fix symlink farms for threading libraries. FreeBSD 4-7 are
  handled. [2]

- Bump PORTREVISION

Reported by:	Ulrich Spoerlein <q@galgenberg.net> [1],
		Chris Gilbert <Chris@lainos.org> [2]
PR:		ports/86007 [1]
2005-09-20 00:40:08 +00:00

52 lines
1.6 KiB
Text

--- Makefile.am.orig Sun May 9 13:00:57 2004
+++ Makefile.am Tue Sep 20 00:04:44 2005
@@ -55,26 +55,44 @@
if !IS_LINUX
if IS_FREEBSD4
rm -f $(DESTDIR)$(valdir)/libc_r.so.4
-else
+endif
+if IS_FREEBSD5
rm -f $(DESTDIR)$(valdir)/libc_r.so.5
rm -f $(DESTDIR)$(valdir)/libkse.so.1
rm -f $(DESTDIR)$(valdir)/libthr.so.1
-if !IS_FREEBSD_LIBC_R
rm -f $(DESTDIR)$(valdir)/libpthread.so.1
endif
+if IS_FREEBSD6
+ rm -f $(DESTDIR)$(valdir)/libc_r.so.6
+ rm -f $(DESTDIR)$(valdir)/libthr.so.2
+ rm -f $(DESTDIR)$(valdir)/libpthread.so.2
+endif
+if IS_FREEBSD7
+ rm -f $(DESTDIR)$(valdir)/libc_r.so.6
+ rm -f $(DESTDIR)$(valdir)/libthr.so.2
+ rm -f $(DESTDIR)$(valdir)/libpthread.so.2
endif
endif
- $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.0
if !IS_LINUX
if IS_FREEBSD4
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.4
-else
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.0
+endif
+if IS_FREEBSD5
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.5
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libkse.so.1
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.1
-if !IS_FREEBSD_LIBC_R
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.1
endif
+if IS_FREEBSD6
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.6
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.2
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.2
+endif
+if IS_FREEBSD7
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libc_r.so.6
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libthr.so.2
+ $(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.2
endif
endif