diff options
author | tron <tron@pkgsrc.org> | 1999-05-02 19:46:16 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-05-02 19:46:16 +0000 |
commit | b1e841e86a68956eb60b14dffada303315500366 (patch) | |
tree | bb6e7130b300c6814b1a6a8c464cb2ad77a7cd5a /devel/mit-pthreads/patches/patch-ah | |
parent | e768ea1b0dc82376d6fdf2684947ae0049375ae0 (diff) | |
download | pkgsrc-b1e841e86a68956eb60b14dffada303315500366.tar.gz |
Link shared library with "/usr/lib/c++rt0.o" on a.out systems to make sure
that pthread_init() gets called. Fixes PR pkg/7433 by Andreas Gustafsson.
Diffstat (limited to 'devel/mit-pthreads/patches/patch-ah')
-rw-r--r-- | devel/mit-pthreads/patches/patch-ah | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/devel/mit-pthreads/patches/patch-ah b/devel/mit-pthreads/patches/patch-ah index cd173f171cc..715801bfb7c 100644 --- a/devel/mit-pthreads/patches/patch-ah +++ b/devel/mit-pthreads/patches/patch-ah @@ -1,7 +1,7 @@ -$NetBSD: patch-ah,v 1.4 1999/05/01 18:35:22 tron Exp $ +$NetBSD: patch-ah,v 1.5 1999/05/02 19:46:16 tron Exp $ --- config/Makefile.in.orig Fri Mar 22 05:29:54 1996 -+++ config/Makefile.in Sat May 1 20:27:07 1999 ++++ config/Makefile.in Sun May 2 21:19:49 1999 @@ -18,8 +18,8 @@ # Standard bsd install rules look for the "install" program, rather than @@ -22,16 +22,14 @@ $NetBSD: patch-ah,v 1.4 1999/05/01 18:35:22 tron Exp $ .include "${srcdir}/pthreads/Makefile.inc" .include "${srcdir}/stdlib/Makefile.inc" -@@ -40,6 +40,12 @@ +@@ -38,6 +38,10 @@ + .include "${srcdir}/gen/Makefile.inc" + .include "${srcdir}/net/Makefile.inc" .include "${srcdir}/scripts/Makefile.inc" - - .include <bsd.lib.mk> + -+.ifdef OBJECT_FMT +.if (${OBJECT_FMT} == "a.out") -+SHLIB_LDSTARTFILE = /usr/lib/c++rt0.o -+.endif ++SOBJS+= /usr/lib/c++rt0.o +.endif - $(OBJS) : $(config) $(types) $(paths) + .include <bsd.lib.mk> |