* ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries

This commit is contained in:
Alexandre Oliva 1999-04-05 21:29:00 +00:00 committed by Alexandre Oliva
parent 4ddeed6d75
commit 314ef2c7d1
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
1999-04-05 Alexandre Oliva <oliva@dcc.unicamp.br> 1999-04-05 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries
* Makefile.am (CVS): allow command-line overriding of cvs * Makefile.am (CVS): allow command-line overriding of cvs
* ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by * ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by

View File

@ -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' $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*) sunos4*)
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts' archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
wlarc= wlarc=