pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Remove special treatment of "DynaLoader.a" complete...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f94199f1b1c
branches:  trunk
changeset: 527516:2f94199f1b1c
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Apr 09 22:33:26 2007 +0000

description:
Remove special treatment of "DynaLoader.a" completely. It's not necessary
with current libtool version and breaks the build under Darwin 8.x and
NetBSD 4.0_BETA2.

diffstat:

 mk/buildlink3/cmd-sink-libtool |  17 +----------------
 mk/wrapper/arg-pp-main         |  15 +--------------
 2 files changed, 2 insertions(+), 30 deletions(-)

diffs (60 lines):

diff -r 467ef2b55d4e -r 2f94199f1b1c mk/buildlink3/cmd-sink-libtool
--- a/mk/buildlink3/cmd-sink-libtool    Mon Apr 09 21:26:18 2007 +0000
+++ b/mk/buildlink3/cmd-sink-libtool    Mon Apr 09 22:33:26 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-libtool,v 1.3 2007/03/12 19:19:45 tron Exp $
+# $NetBSD: cmd-sink-libtool,v 1.4 2007/04/09 22:33:26 tron Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -40,21 +40,6 @@
        $debug_log $wrapperlog "    (cmd-sink-libtool) pop:  $arg"
        case $arg in
        ##############################################################
-       # Hardcode a workaround for perl's DynaLoader.a which is
-       # definitely a PIC code archive, but libtool isn't smart
-       # enough to realize it.  Munge the name into something that
-       # will make libtool recognize it as a PIC code archive.  We
-       # unmunge it in arg-pp-main so non-libtool wrappers see the
-       # right thing.
-       ##############################################################
-       */DynaLoader.a)
-               if [ "$OPSYS" != "Darwin" ]; then
-                       arg="${arg%/DynaLoader.a}/libDynaLoader_pic.a"
-                       $debug_log $wrapperlog "    (cmd-sink-libtool) to:   $arg"
-               fi
-               . $buildcmd
-               ;;
-       ##############################################################
        # If we're in "compile" mode, then don't add any linker options
        # to the command line.
        ##############################################################
diff -r 467ef2b55d4e -r 2f94199f1b1c mk/wrapper/arg-pp-main
--- a/mk/wrapper/arg-pp-main    Mon Apr 09 21:26:18 2007 +0000
+++ b/mk/wrapper/arg-pp-main    Mon Apr 09 22:33:26 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: arg-pp-main,v 1.5 2005/08/05 19:46:41 jlam Exp $
+# $NetBSD: arg-pp-main,v 1.6 2007/04/09 22:33:26 tron Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,19 +36,6 @@
 
 case $arg in
 ######################################################################
-# Hardcode a workaround for perl's DynaLoader.a which is definitely
-# a PIC code archive, but libtool isn't smart enough to realize it.
-# cmd-sink-libtool munged it into something libtool recognizes, but
-# now we need to unmunge it so that the compiler/linker are called
-# with the right name for the archive.
-######################################################################
-*/libDynaLoader_pic.a)
-       arg="${arg%/libDynaLoader_pic.a}/DynaLoader.a"
-       prepend_queue argbuf "$arg"
-       $debug_log $wrapperlog "    (arg-pp-main) pre:  $arg"
-       argmatch=yes
-       ;;
-######################################################################
 # Split direct paths to shared libraries into the "-Ldir -llib"
 # equivalent.
 ######################################################################



Home | Main Index | Thread Index | Old Index