]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to
authorPaul Eggert <eggert@twinsun.com>
Mon, 6 May 2002 15:07:47 +0000 (15:07 +0000)
committerRobert Boehne <rboehne@gnu.org>
Mon, 6 May 2002 15:07:47 +0000 (15:07 +0000)
port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with
_POSIX2_VERSION=200112.
* exe/link-txt.tpl: Include the previous change in the template.

* ltmain.in: Detect and handle object name conflicts while

ChangeLog
exe/link-txt.tpl
libtool.m4

index 3dbce606b53b112463f741256146d0be849bfee1..dd214e26de4630e5201a1243a34e93202da0628a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-05-06  Paul Eggert  <eggert@twinsun.com>
+
+       * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to
+       port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with
+       _POSIX2_VERSION=200112.
+       * exe/link-txt.tpl: Include the previous change in the template.
+
 2002-05-06  Paul Eggert  <eggert@twinsun.com>
 
        * ltmain.in: Don't assume that "sort +2" works, as POSIX
@@ -7,7 +14,7 @@
 
 2002-05-06  Loren James Rittle  <rittle@latour.rsch.comm.mot.com>
 
-       * ltmain.sh: Detect and handle object name conflicts while
+       * ltmain.in: Detect and handle object name conflicts while
        piecewise linking a static library.
 
 2002-05-02  Dave Vasilevsky  <thevas@mac.com>
index e1c34e0b3d3a0029dda75d9ad3b0830caa350772..aedfd046226521af5d0360fc73e9d772d5bc1648 100644 (file)
@@ -2996,7 +2996,13 @@ extern \"C\" {
            fi
 
            # Try sorting and uniquifying the output.
-           if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
+           if grep -v "^: " < "$nlist" |
+               if sort -k 3 </dev/null >/dev/null 2>&1; then
+                 sort -k 3
+               else
+                 sort +2
+               fi |
+               uniq > "$nlist"S; then
              :
            else
              grep -v "^: " < "$nlist" > "$nlist"S
index f775f2e32e62ec1fc2f549aaaf6e95041b3f484f..7c8add4479161b8353b43e99dd73fe4b671764cb 100644 (file)
@@ -4539,7 +4539,7 @@ EOF
       # If the export-symbols file already is a .def file (1st line
       # is EXPORTS), use it as is.
       # If DATA tags from a recent dlltool are present, honour them!
-      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
          cp $export_symbols $output_objdir/$soname-def;
        else
          echo EXPORTS > $output_objdir/$soname-def;