aboutsummaryrefslogtreecommitdiff
path: root/ltcf-c.sh
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-02-06 05:52:33 +0000
committerMark Mitchell <mark@codesourcery.com>2001-02-06 05:52:33 +0000
commit39f7c6c00c432cd1e23fd98c1c52056013a1b14b (patch)
tree2bf0faa388ef99b16c20dea9c90f1f2121a313ac /ltcf-c.sh
parentab93adffe1bc103880a576a4a53210d1097089e9 (diff)
* ltcf-c.sh: Add support for --no-undefined under GNU/Linux.
* ltcf-cxx.sh: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@39477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-c.sh')
-rw-r--r--ltcf-c.sh5
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