* ltconfig.in (wlarc, netbsd, aout): Set to empty.

(hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use it.
This commit is contained in:
Alexandre Oliva 2000-07-10 06:54:27 +00:00 committed by Alexandre Oliva
parent 6172e455b7
commit cc72188443
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2000-07-10 Alexandre Oliva <aoliva@lsd.ic.unicamp.br>
* ltconfig.in (wlarc, netbsd, aout): Set to empty.
(hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use it.
* ltconfig.in (dynamic_linker, linux, powerpc): Do not disable
shared libraries just because of MkLinux.

View File

@ -1087,6 +1087,7 @@ EOF
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
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'
@ -1133,8 +1134,8 @@ EOF
if test "$ld_shlibs" = yes; then
runpath_var=LD_RUN_PATH
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
export_dynamic_flag_spec='${wl}--export-dynamic'
hardcode_libdir_flag_spec="$wlarc"'--rpath '"$wlarc"'$libdir'
export_dynamic_flag_spec="$wlarc"'--export-dynamic'
case $host_os in
cygwin* | mingw*)
# dlltool doesn't understand --whole-archive et. al.