summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-07-09 23:38:40 +0000
committertron <tron@pkgsrc.org>1999-07-09 23:38:40 +0000
commitd022d1fb159c1603bb4ce1c1fa8f096cc2d16088 (patch)
tree71b591544e5192f0eb7ba3b0314bf8c4b7714974
parentf8efa41221eae7b379a7c6c748fc6dc542d57467 (diff)
downloadpkgsrc-d022d1fb159c1603bb4ce1c1fa8f096cc2d16088.tar.gz
Build all libraries static on sparc a.out systems because "c++rt0.o"
kludge doesn't work.
-rw-r--r--x11/kdelibs/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/x11/kdelibs/Makefile b/x11/kdelibs/Makefile
index 113409c0575..6f012bbea75 100644
--- a/x11/kdelibs/Makefile
+++ b/x11/kdelibs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 1999/07/09 22:43:08 tron Exp $
+# $NetBSD: Makefile,v 1.36 1999/07/09 23:38:40 tron Exp $
# FreeBSD Id: Makefile,v 1.5 1997/11/27 00:25:46 se Exp
#
@@ -25,13 +25,17 @@ CONFIGURE_ARGS= "--datadir=${PREFIX}/share/kde" \
"--with-qt-dir=${PREFIX}" \
"--with-qt-includes=${PREFIX}/include/qt"
CFLAGS+= -I${LOCALBASE}/include
-CONFIGURE_ENV= CXXFLAGS="${CFLAGS}" \
- all_libraries="-L${LOCALBASE}/lib"
.include "../../mk/bsd.prefs.mk"
-.if (${OBJECT_FMT} == "a.out")
-NOT_FOR_PLATFORM= NetBSD-*-sparc*
+.if (${OBJECT_FMT} == "a.out") && (${MACHINE_ARCH} == "sparc")
+CFLAGS+= -static
+PLIST_SRC= ${WRKDIR}/PLIST
+
+post-install:
+ @${GREP} -v ^lib/lib.*\.so ${PKGDIR}/PLIST >${PLIST_SRC}
.endif
+CONFIGURE_ENV= CXXFLAGS="${CFLAGS}" all_libraries="-L${LOCALBASE}/lib"
+
.include "../../mk/bsd.pkg.mk"