From: Alexandre Oliva Date: Mon, 5 Apr 1999 21:28:49 +0000 (+0000) Subject: * ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries X-Git-Tag: release-1-3~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6b31a02d9027f416c9989bbacc5ccd40b73ae2a;p=thirdparty%2Flibtool.git * ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries --- diff --git a/ChangeLog b/ChangeLog index b8abc5841..1727ed083 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-04-05 Alexandre Oliva + * ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries + * Makefile.am (CVS): allow command-line overriding of cvs * ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by diff --git a/ltconfig.in b/ltconfig.in index 75863f2b5..567d0607f 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1108,6 +1108,16 @@ EOF old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' ;; + netbsd*) + if $LD --help 2>&1 | egrep ': supported targets:.* 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' + # can we support soname and/or expsyms with a.out? -oliva + fi + ;; + sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts' wlarc=