diff --git a/ChangeLog b/ChangeLog index e89c4538..14aad985 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 21a380ec..bd52b687 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1117,6 +1117,16 @@ EOF $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts' ;; + 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=