pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Workaround to allow ORBit to link against libpthread.s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7ca7debbf3c
branches:  trunk
changeset: 462117:d7ca7debbf3c
user:      gavan <gavan%pkgsrc.org@localhost>
date:      Fri Sep 26 10:59:16 2003 +0000

description:
Workaround to allow ORBit to link against libpthread.so on Solaris.

diffstat:

 doc/HACKS          |  13 ++++++++++++-
 net/ORBit/Makefile |   8 +++++++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r fb3d2a01adb7 -r d7ca7debbf3c doc/HACKS
--- a/doc/HACKS Fri Sep 26 10:59:10 2003 +0000
+++ b/doc/HACKS Fri Sep 26 10:59:16 2003 +0000
@@ -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 @@
 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 -r fb3d2a01adb7 -r d7ca7debbf3c net/ORBit/Makefile
--- a/net/ORBit/Makefile        Fri Sep 26 10:59:10 2003 +0000
+++ b/net/ORBit/Makefile        Fri Sep 26 10:59:16 2003 +0000
@@ -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 @@
 
 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"



Home | Main Index | Thread Index | Old Index