summaryrefslogtreecommitdiff
path: root/lang/gcc3-c
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-12 22:53:47 +0000
committerjlam <jlam@pkgsrc.org>2004-02-12 22:53:47 +0000
commitdf95f240e0c5461fbec69436a8ad04efd1b73f5c (patch)
tree976cf538937c7186f88cee953978f83738eb6a2f /lang/gcc3-c
parent8945d2d1e5a92629897ccedcda8d85d23eea5a7e (diff)
downloadpkgsrc-df95f240e0c5461fbec69436a8ad04efd1b73f5c.tar.gz
Use "sunos"-style shared library numbering whenever a platform wants the
"linux"-style one. This matches our pkgsrc libtool behaviour so that we can get a consistent numbering across different platforms so that we don't have to fiddle with the PLIST. This fixes PR 22556 and PR 23684.
Diffstat (limited to 'lang/gcc3-c')
-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 189c7e8156a..b4a2e896648 100644
--- a/lang/gcc3-c/Makefile.common
+++ b/lang/gcc3-c/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.12 2004/02/06 19:04:25 jlam Exp $
+# $NetBSD: Makefile.common,v 1.13 2004/02/12 22:53:47 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}
+# 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
+# not regenerated after the configure script is run.
+#
pre-configure:
${MKDIR} ${BUILD_DIRS}
+ cd ${WRKSRC}; for file in ltconfig boehm-gc/ltconfig; do \
+ ${MV} -f $$file $$file.bak; \
+ ${SED} -e "s|\(version_type\)=linux|\1=sunos|g" \
+ $$file.bak > $$file; \
+ ${CHMOD} +x $$file; \
+ done
cd ${WRKSRC} && contrib/gcc_update --touch