summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2003-09-26 10:59:16 +0000
committergavan <gavan@pkgsrc.org>2003-09-26 10:59:16 +0000
commit3b1183715002d11683d52f617e4880361821813d (patch)
tree5535fd95586566b236f0d3b188d0f2bddcc94f94
parentaab2d483da5b52acb673e08604a9c10ec60464fc (diff)
downloadpkgsrc-3b1183715002d11683d52f617e4880361821813d.tar.gz
Workaround to allow ORBit to link against libpthread.so on Solaris.
-rw-r--r--doc/HACKS13
-rw-r--r--net/ORBit/Makefile8
2 files changed, 19 insertions, 2 deletions
diff --git a/doc/HACKS b/doc/HACKS
index 2e1401bc6fb..4fe6eaf35b0 100644
--- a/doc/HACKS
+++ b/doc/HACKS
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.17 2003/08/02 17:52:14 kristerw Exp $
+# $NetBSD: HACKS,v 1.18 2003/09/26 10:59:16 gavan Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -378,3 +378,14 @@ port arm
file devel/ftnchek/Makefile : 1.13
descr Internal compiler error for fortran.c when -O2. Use -O1 instead.
kcah
+
+hack net/ORBit Solaris linking bug
+cdate 26 Sep 2003
+who gavan
+port Solaris
+file net/ORBit/Makefile : 1.94
+descr
+ libtool tries to link against libpthread.a, which doesn't exist
+ on Solaris. Removing the reference to libpthread.a from libpthread.la
+ after buildlinking allows ORBit to build on Solaris.
+kcah
diff --git a/net/ORBit/Makefile b/net/ORBit/Makefile
index 0d02d926dfe..750349a4001 100644
--- a/net/ORBit/Makefile
+++ b/net/ORBit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.93 2003/08/09 11:16:16 seb Exp $
+# $NetBSD: Makefile,v 1.94 2003/09/26 10:59:16 gavan Exp $
#
DISTNAME= ORBit-0.${ORBIT_MAJOR}.${ORBIT_MINOR}
@@ -41,6 +41,12 @@ PLIST_SUBST+= ORBIT_MAJOR=${ORBIT_MAJOR} ORBIT_MINOR=${ORBIT_MINOR}
INFO_FILES= libIDL.info
+.if ${OPSYS} == "SunOS"
+post-buildlink:
+ ${MV} ${BUILDLINK_DIR}/lib/libpthread.la ${BUILDLINK_DIR}/lib/libpthread.la.old
+ ${GREP} -v libpthread.a ${BUILDLINK_DIR}/lib/libpthread.la.old >${BUILDLINK_DIR}/lib/libpthread.la
+.endif
+
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/glib/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"