From 16c84d4bb90f450e47038eb6ad91494261d8d9bd Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 30 May 2000 00:21:05 +0000 Subject: [PATCH] * ltcf-c.sh (netbsd*): archive_cmds and archive_expsym_cmds were reversed with respect to definition of __ELF__. * ltcf-gcj.sh (netbsd*): ditto. From Keisuke Inoue --- ChangeLog | 7 +++++++ ltcf-c.sh | 4 ++-- ltcf-gcj.sh | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 163fe0c37..2c4d66af8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-05-30 Gary V. Vaughan + + * ltcf-c.sh (netbsd*): archive_cmds and archive_expsym_cmds + were reversed with respect to definition of __ELF__. + * ltcf-gcj.sh (netbsd*): ditto. + From Keisuke Inoue + 2000-05-29 Gary V. Vaughan * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for diff --git a/ltcf-c.sh b/ltcf-c.sh index 7e75dbe2d..098cb00f5 100644 --- a/ltcf-c.sh +++ b/ltcf-c.sh @@ -171,10 +171,10 @@ EOF netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + else 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 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' fi ;; diff --git a/ltcf-gcj.sh b/ltcf-gcj.sh index d00dd3388..f4e06fcc2 100644 --- a/ltcf-gcj.sh +++ b/ltcf-gcj.sh @@ -174,10 +174,10 @@ EOF netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + else 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 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' fi ;; -- 2.47.3