From 0e3c79132a5cda644ab7ebbca228b5fc1bb79cdd Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 24 Oct 2000 05:10:04 +0000 Subject: [PATCH] libtool 1.3.5 had link commands for NetBSD a.out and ELF backwards --- ltconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ltconfig b/ltconfig index 506f252816..1fbc0d8dbe 100755 --- a/ltconfig +++ b/ltconfig @@ -1194,11 +1194,11 @@ EOF netbsd*) if echo __ELF__ | $CC -E - | 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 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib' + archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib' # a.out # can we support soname and/or expsyms with a.out? -oliva + else + 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' # ELF fi ;;