pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc3-c Use "sunos"-style shared library numbering...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/06dc5f68cf38
branches:  trunk
changeset: 468348:06dc5f68cf38
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Feb 12 22:53:47 2004 +0000

description:
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:

 lang/gcc3-c/Makefile.common |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 400f3cc0293a -r 06dc5f68cf38 lang/gcc3-c/Makefile.common
--- a/lang/gcc3-c/Makefile.common       Thu Feb 12 22:18:12 2004 +0000
+++ b/lang/gcc3-c/Makefile.common       Thu Feb 12 22:53:47 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index