summaryrefslogtreecommitdiff
path: root/lang/gcc3-c
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-13 15:13:00 +0000
committerjlam <jlam>2004-02-13 15:13:00 +0000
commitffaf3c84ffb1a543540063967317a5fb23c4e51b (patch)
treeedd0d6b415feee8cea89c0d546240d707a03e687 /lang/gcc3-c
parent61b8bc29766d37c2cd8b5a71a020e53aca1710b2 (diff)
downloadpkgsrc-ffaf3c84ffb1a543540063967317a5fb23c4e51b.tar.gz
Bump the PKGREVISION after fixing up the installed *.la files to remove
references to the buildlink work directories.
Diffstat (limited to 'lang/gcc3-c')
-rw-r--r--lang/gcc3-c/Makefile.common13
-rw-r--r--lang/gcc3-c/language.mk4
2 files changed, 14 insertions, 3 deletions
diff --git a/lang/gcc3-c/Makefile.common b/lang/gcc3-c/Makefile.common
index b4a2e896648..996d5f39103 100644
--- a/lang/gcc3-c/Makefile.common
+++ b/lang/gcc3-c/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2004/02/12 22:53:47 jlam Exp $
+# $NetBSD: Makefile.common,v 1.14 2004/02/13 15:13:01 jlam Exp $
GCC_VERSION= 3.3.2
DISTNAME= gcc-${GCC_VERSION}
@@ -89,6 +89,17 @@ CONFIGURE_ARGS+= --disable-shared
GCC_ARCHSUBDIR= ${GCC_SUBPREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${GCC_VERSION}
GCC_ARCHDIR= ${PREFIX}/${GCC_ARCHSUBDIR}
+.if defined(INSTLIBS)
+BUILDLINK_LIBTOOL= ${BUILDLINK_DIR}/bin/libtool
+
+.PHONY: scrub-libtool-archives
+post-build: scrub-libtool-archives
+scrub-libtool-archives:
+. for lafile in ${INSTLIBS}
+ ${BUILDLINK_LIBTOOL} --fix-la ${WRKSRC}/${GCC_PLATFORM}/${lafile}
+. endfor
+.endif
+
# Create the directories for the build, patch the ltconfig script to
# always use "sunos" shared library numbering (for consistent PLISTs
# across platforms), and touch all the necessary files so that they're
diff --git a/lang/gcc3-c/language.mk b/lang/gcc3-c/language.mk
index 32a00188455..f56e2286b29 100644
--- a/lang/gcc3-c/language.mk
+++ b/lang/gcc3-c/language.mk
@@ -1,9 +1,9 @@
-# $NetBSD: language.mk,v 1.4 2004/02/12 11:40:45 jlam Exp $
+# $NetBSD: language.mk,v 1.5 2004/02/13 15:13:01 jlam Exp $
BUILDLINK_DEPENDS.gcc3c+= gcc3${GCC3_PKGMODIF}-c>=${GCC_VERSION}
BUILDLINK_DEPMETHOD.gcc3c+= full
-.include "../../lang/gcc3-c/Makefile.common"
+.include "../gcc3-c/Makefile.common"
pre-build:
cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} tconfig.h