aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-02-06 05:52:33 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-02-06 05:52:33 +0000
commit2a4e96b7180dfd82024932abd3f73a3bef82fa90 (patch)
tree2bf0faa388ef99b16c20dea9c90f1f2121a313ac
parent9638617e2bbbb0851f1d683f5d0a486882dcda3b (diff)
downloadgcc-2a4e96b7180dfd82024932abd3f73a3bef82fa90.zip
gcc-2a4e96b7180dfd82024932abd3f73a3bef82fa90.tar.gz
gcc-2a4e96b7180dfd82024932abd3f73a3bef82fa90.tar.bz2
ltcf-c.sh: Add support for --no-undefined under GNU/Linux.
* ltcf-c.sh: Add support for --no-undefined under GNU/Linux. * ltcf-cxx.sh: Likewise. From-SVN: r39477
-rw-r--r--ChangeLog3
-rw-r--r--ltcf-c.sh5
-rw-r--r--ltcf-cxx.sh5
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ce21d01..a60202f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-02-05 Mark Mitchell <mark@codesourcery.com>
+ * ltcf-c.sh: Add support for --no-undefined under GNU/Linux.
+ * ltcf-cxx.sh: Likewise.
+
* config.if: Assume enable_libstdcxx_v3 is defined.
2001-02-04 Mark Mitchell <mark@codesourcery.com>
diff --git a/ltcf-c.sh b/ltcf-c.sh
index 80bf5ae..8e1cf87 100644
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -207,8 +207,9 @@ EOF
*)
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- 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'
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${allow_undefined_flag} ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${allow_undefined_flag} ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ no_undefined_flag='${wl}--no-undefined'
else
ld_shlibs=no
fi
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index 1a5a60e..068f156 100644
--- a/ltcf-cxx.sh
+++ b/ltcf-cxx.sh
@@ -73,8 +73,9 @@ if { ac_try='${CC-c++} -E conftest.$ac_ext'; { (eval echo \"$ac_try\") 1>&5; (ev
egrep 'GNU ld' > /dev/null; then
with_gnu_ld=yes
- archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${allow_undefined_flag} ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${allow_undefined_flag} ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ no_undefined_flag='${wl}--no-undefined'
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
export_dynamic_flag_spec='${wl}--export-dynamic'