summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-03-01 02:10:22 +0000
committerhubertf <hubertf@pkgsrc.org>2001-03-01 02:10:22 +0000
commitcc1187a0fff32e9f46a4696244233a4f5685e5e2 (patch)
treea53a198613189a47645de4eee46b21bd498922d4
parentca3da75ed9516bcfee302b67e0a7c4e812baabe8 (diff)
downloadpkgsrc-cc1187a0fff32e9f46a4696244233a4f5685e5e2.tar.gz
gcc installs a few extra files on sparc:
/usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtbegin.o /usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtbeginS.o /usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtend.o /usr/pkg/gcc-2.95.2//lib/gcc-lib/sparc--netbsdelf/2.95.2/crtendS.o Make sure they find their way into PLIST
-rw-r--r--lang/gcc/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index b02d47da8e9..048daf329a5 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2001/02/28 23:51:12 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2001/03/01 02:10:22 hubertf Exp $
DISTNAME= gcc-2.95.2
CATEGORIES= lang
@@ -41,6 +41,7 @@ WRKSRC= ${WRKDIR}/objdir
.if (${OPSYS} != SunOS)
CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld
GCC_PREFIX= ${LOCALBASE}/${PKGNAME}
+PLIST_SRC= ${WRKDIR}/_PLIST_SRC
.else
.if (${CC} != gcc)
ALL_TARGET= bootstrap
@@ -53,6 +54,13 @@ CONFLICTS+= gcc-[0-9]* pgcc-[0-9]*
post-extract:
${MKDIR} ${WRKSRC}
+.if ${MACHINE_PLATFORM:MNetBSD-*-sparc}
+ echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbegin.o' >>${PLIST_SRC}
+ echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtbeginS.o' >>${PLIST_SRC}
+ echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtend.o' >>${PLIST_SRC}
+ echo '$${PKGNAME}/lib/gcc-lib/$${MACHINE_GCC_PLATFORM}/$${GCC_VERSION}/crtendS.o' >>${PLIST_SRC}
+.endif
+ ${CAT} ${PKGDIR}/PLIST >>${PLIST_SRC}
post-patch:
${ECHO} "bogus" >${WRKSRC}/../${DISTNAME}/gcc/cstamp-h.in