pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libtool Don't add -z text unconditionally to ld ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abe7fd416c37
branches:  trunk
changeset: 592811:abe7fd416c37
user:      hans <hans%pkgsrc.org@localhost>
date:      Wed Sep 14 16:35:51 2011 +0000

description:
Don't add -z text unconditionally to ld on SunOS. This make
-mimpure-text work again, which is needed for several packages that use
assembly optimizations.

diffstat:

 devel/libtool/distinfo         |   4 +-
 devel/libtool/patches/patch-ab |  54 +++++++++++++++++++++++++++++++++++++++--
 2 files changed, 53 insertions(+), 5 deletions(-)

diffs (108 lines):

diff -r d8cff7e7b32b -r abe7fd416c37 devel/libtool/distinfo
--- a/devel/libtool/distinfo    Wed Sep 14 16:33:45 2011 +0000
+++ b/devel/libtool/distinfo    Wed Sep 14 16:35:51 2011 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.82 2011/05/14 16:49:45 bsiegert Exp $
+$NetBSD: distinfo,v 1.83 2011/09/14 16:35:51 hans Exp $
 
 SHA1 (libtool-2.2.6b.tar.gz) = 5afa73c8ef9ebe64bbb438a0f8779c9036e43c55
 RMD160 (libtool-2.2.6b.tar.gz) = 02d8c1460946a1a0054b3ccb6b54d2404b53c2ef
 Size (libtool-2.2.6b.tar.gz) = 2347317 bytes
 SHA1 (patch-aa) = 84e916bf868ada2ebeffe940f03537fadd751751
-SHA1 (patch-ab) = 82af69aabcf095bc6eebbaf36ff04e9bd430c48b
+SHA1 (patch-ab) = 8f5408a1eb1bf16cdb90dbe0cf5f6d4853e32f2b
 SHA1 (patch-ac) = d4d6987ea14180891737a3defa37689d7c35853e
 SHA1 (patch-ad) = 8bc1435f5b271453b95b766f2d7fe999da5084d3
diff -r d8cff7e7b32b -r abe7fd416c37 devel/libtool/patches/patch-ab
--- a/devel/libtool/patches/patch-ab    Wed Sep 14 16:33:45 2011 +0000
+++ b/devel/libtool/patches/patch-ab    Wed Sep 14 16:35:51 2011 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-ab,v 1.70 2011/05/14 16:49:45 bsiegert Exp $
+$NetBSD: patch-ab,v 1.71 2011/09/14 16:35:51 hans Exp $
 
 The last two chunks work around bugs in ksh on NetBSD.
 The problem manifests with wl and no_builtin_flag containing newlines.
 
---- configure.orig     2011-04-14 15:39:05.000000000 +0000
-+++ configure
+--- configure.orig     2009-11-16 14:14:55.000000000 +0100
++++ configure  2011-09-08 17:53:38.830895810 +0200
 @@ -5293,13 +5293,20 @@ else
      lt_cv_sys_max_cmd_len=8192;
      ;;
@@ -183,6 +183,18 @@
        ;;
  
      openbsd*)
+@@ -9522,9 +9591,9 @@ rm -f core conftest.err conftest.$ac_obj
+       no_undefined_flag=' -z defs'
+       if test "$GCC" = yes; then
+       wlarc='${wl}'
+-      archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+-        $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
++        $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+       else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
 @@ -10064,6 +10133,7 @@ beos*)
  bsdi[45]*)
    version_type=linux
@@ -756,6 +768,18 @@
        ;;
  
      openbsd*)
+@@ -17255,9 +17512,9 @@ rm -f core conftest.err conftest.$ac_obj
+       no_undefined_flag_F77=' -z defs'
+       if test "$GCC" = yes; then
+       wlarc='${wl}'
+-      archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+-        $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
++        $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+       else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
 @@ -17644,6 +17901,7 @@ beos*)
  bsdi[45]*)
    version_type=linux
@@ -1023,6 +1047,18 @@
        ;;
  
      openbsd*)
+@@ -20060,9 +20404,9 @@ rm -f core conftest.err conftest.$ac_obj
+       no_undefined_flag_FC=' -z defs'
+       if test "$GCC" = yes; then
+       wlarc='${wl}'
+-      archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      archive_cmds_FC='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+-        $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
++        $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+       else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
 @@ -20449,6 +20793,7 @@ beos*)
  bsdi[45]*)
    version_type=linux
@@ -1290,6 +1326,18 @@
        ;;
  
      openbsd*)
+@@ -22617,9 +23048,9 @@ rm -f core conftest.err conftest.$ac_obj
+       no_undefined_flag_GCJ=' -z defs'
+       if test "$GCC" = yes; then
+       wlarc='${wl}'
+-      archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
++      archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+-        $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
++        $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+       else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
 @@ -23115,7 +23546,10 @@ for cc_temp in $compiler""; do
      *) break;;
    esac



Home | Main Index | Thread Index | Old Index