Commit 2a4e96b7 by Mark Mitchell Committed by Mark Mitchell

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
parent 9638617e
2001-02-05 Mark Mitchell <mark@codesourcery.com> 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. * config.if: Assume enable_libstdcxx_v3 is defined.
2001-02-04 Mark Mitchell <mark@codesourcery.com> 2001-02-04 Mark Mitchell <mark@codesourcery.com>
......
...@@ -207,8 +207,9 @@ EOF ...@@ -207,8 +207,9 @@ EOF
*) *)
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 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_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 ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -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 else
ld_shlibs=no ld_shlibs=no
fi fi
......
...@@ -73,8 +73,9 @@ if { ac_try='${CC-c++} -E conftest.$ac_ext'; { (eval echo \"$ac_try\") 1>&5; (ev ...@@ -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 egrep 'GNU ld' > /dev/null; then
with_gnu_ld=yes with_gnu_ld=yes
archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -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 ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -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' hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
export_dynamic_flag_spec='${wl}--export-dynamic' export_dynamic_flag_spec='${wl}--export-dynamic'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment