]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: Support new GNU ld --help output format.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 6 Jun 1999 23:52:36 +0000 (23:52 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 6 Jun 1999 23:52:36 +0000 (23:52 +0000)
* NEWS:  Likewise.
Reported by Gaël Quéri <gael@baoule.dyndns.org> and
H.J. Lu <hjl@varesearch.com>.

ChangeLog
NEWS
ltconfig.in

index b46b685951ae42c030a33e1eee7e71f79bbf5227..9a867acc36323210734f6905b8b890b83989231b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-06-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltconfig.in: Support new GNU ld --help output format.
+       * NEWS:  Likewise.
+       Reported by Gaël Quéri <gael@baoule.dyndns.org> and
+       H.J. Lu <hjl@varesearch.com>.
+
 1999-06-05  Mark Kettenis  <kettenis@gnu.org>
 
        * ltconfig.in: Update support for the Hurd.  Make sure that the
diff --git a/NEWS b/NEWS
index 97e14c3d2904171d8163c7531cdc055c4ef65d27..e0959b60268f8add6f0ee8f274c70e3524a4bf98 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ New in 1.3b: 1999-??-??; CVS version 1.3a, Libtool team:
 * Various bugfixes
 \f
 New in CVS version 1.3.2a, Libtool team:
+* Support new GNU ld (ELF support detection).
 * Expand convenience libraries when creating reloadable objects.
 * Do not pass -whole-archive or equivalent to symbol extractor.
 * Create directory to expand convenience libraries only when needed.
index ac375733b5310b354d4bf09c6578ba7d734eaa79..d07760cc29933a9432d21cd1205fc65735cbda6a 100755 (executable)
@@ -1115,7 +1115,7 @@ EOF
     ;;
 
   beos*)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+    if $LD --help 2>&1 | sed -n '/: supported targets:/,/:/p' | grep 'elf' > /dev/null; then
       allow_undefined_flag=unsupported
       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
       # support --undefined.  This deserves some investigation.  FIXME
@@ -1162,7 +1162,7 @@ EOF
     ;;
 
   netbsd*)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+    if $LD --help 2>&1 | sed -n '/: supported targets:/,/:/p' | grep 'elf' > /dev/null; then
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     else
@@ -1184,7 +1184,7 @@ EOF
 *** used, and then restart.
 
 EOF
-    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+    elif $LD --help 2>&1 | sed -n '/: supported targets:/,/:/p' | grep 'elf' > /dev/null; then
       archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     else
@@ -1200,7 +1200,7 @@ EOF
     ;;
 
   *)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+    if $LD --help 2>&1 | sed -n '/: supported targets:/,/:/p' | grep 'elf' > /dev/null; then
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     else