1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/valgrind/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

55 lines
1.6 KiB
Plaintext

--- Makefile.am.orig Thu Apr 8 21:05:08 2004
+++ Makefile.am Tue Sep 20 00:01:29 2005
@@ -50,26 +50,46 @@
install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(valdir)
- rm -f $(DESTDIR)$(valdir)/libpthread.so.0
+
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
- 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
+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
$(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