From d7ad03649c724f192cd26c1e84a1b88aa9e5a909 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 10 Jul 2000 07:03:52 +0000 Subject: [PATCH] * ltcf-c.sh (wlarc, netbsd, aout): Set wlarc to empty. (hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use wlarc instead of wl. * ltcf-gcj.sh (wlarc, netbsd, aout): Set wlarc to empty. (hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use wlarc instead of wl. --- ChangeLog | 7 +++++++ ltcf-c.sh | 5 +++-- ltcf-gcj.sh | 5 +++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c8408b19..dc3c317e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2000-07-10 Alexandre Oliva + * ltcf-c.sh (wlarc, netbsd, aout): Set wlarc to empty. + (hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use + wlarc instead of wl. + * ltcf-gcj.sh (wlarc, netbsd, aout): Set wlarc to empty. + (hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use + wlarc instead of wl. + * ltconfig.in (dynamic_linker, linux, powerpc): Do not disable shared libraries just because of MkLinux. diff --git a/ltcf-c.sh b/ltcf-c.sh index 098cb00f5..3277e9415 100644 --- a/ltcf-c.sh +++ b/ltcf-c.sh @@ -172,6 +172,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' @@ -218,8 +219,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. diff --git a/ltcf-gcj.sh b/ltcf-gcj.sh index f4e06fcc2..44b1fb234 100644 --- a/ltcf-gcj.sh +++ b/ltcf-gcj.sh @@ -175,6 +175,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' @@ -221,8 +222,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. -- 2.47.3