summaryrefslogtreecommitdiff
path: root/ltcf-cxx.sh
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-06 05:52:33 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-06 05:52:33 +0000
commitfda299813421ea43db77d5b7b54714c884b94715 (patch)
tree2bf0faa388ef99b16c20dea9c90f1f2121a313ac /ltcf-cxx.sh
parentbec31319b0d50f8b90e43900db13353d833e8fee (diff)
downloadgcc-fda299813421ea43db77d5b7b54714c884b94715.tar.gz
* ltcf-c.sh: Add support for --no-undefined under GNU/Linux.
* ltcf-cxx.sh: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r--ltcf-cxx.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index 1a5a60eabd2..068f15660f2 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'