diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-06 05:52:33 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-06 05:52:33 +0000 |
commit | fda299813421ea43db77d5b7b54714c884b94715 (patch) | |
tree | 2bf0faa388ef99b16c20dea9c90f1f2121a313ac /ltcf-c.sh | |
parent | bec31319b0d50f8b90e43900db13353d833e8fee (diff) | |
download | gcc-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-c.sh')
-rw-r--r-- | ltcf-c.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ltcf-c.sh b/ltcf-c.sh index 80bf5ae18c0..8e1cf87c9eb 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 |