summaryrefslogtreecommitdiff
path: root/lang/gcc3-c/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3-c/Makefile.common')
-rw-r--r--lang/gcc3-c/Makefile.common13
1 files changed, 12 insertions, 1 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