From ceae7433c35813ff2cabf61df9b60940604fa58b Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 6 Jun 1999 23:52:36 +0000 Subject: [PATCH] =?UTF-8?q?*=20ltconfig.in:=20Support=20new=20GNU=20ld=20-?= =?UTF-8?q?-help=20output=20format.=20*=20NEWS:=20=20Likewise.=20Reported?= =?UTF-8?q?=20by=20Ga=EBl=20Qu=E9ri=20=20and=20H.J?= =?UTF-8?q?.=20Lu=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 7 +++++++ NEWS | 1 + ltconfig.in | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b46b6859..9a867acc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-06-06 Alexandre Oliva + + * ltconfig.in: Support new GNU ld --help output format. + * NEWS: Likewise. + Reported by Gaël Quéri and + H.J. Lu . + 1999-06-05 Mark Kettenis * ltconfig.in: Update support for the Hurd. Make sure that the diff --git a/NEWS b/NEWS index 97e14c3d..e0959b60 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ New in 1.3b: 1999-??-??; CVS version 1.3a, Libtool team: * Various bugfixes 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. diff --git a/ltconfig.in b/ltconfig.in index ac375733..d07760cc 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 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