summaryrefslogtreecommitdiffstats
path: root/ltcf-c.sh
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-09-06 13:27:41 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-09-06 13:27:41 +0000
commit94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3 (patch)
treea4bec4bc2eace49f59e674ba2e9b70c2722d5d83 /ltcf-c.sh
parentb8a0fafe80e99063154f2d373beca27e398274c0 (diff)
downloadcygnal-94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3.tar.gz
cygnal-94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3.tar.bz2
cygnal-94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3.zip
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh: Updated from libtool
multi-language branch.
Diffstat (limited to 'ltcf-c.sh')
-rw-r--r--ltcf-c.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/ltcf-c.sh b/ltcf-c.sh
index 5904022b9..e57abb1cb 100644
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -1,7 +1,5 @@
#### This script is meant to be sourced by ltconfig.
-# $Id$
-
# ltcf-c.sh - Create a C compiler specific configuration
#
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
@@ -92,7 +90,7 @@ EOF
allow_undefined_flag=unsupported
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
# support --undefined. This deserves some investigation. FIXME
- archive_cmds='$CC -nostart $libobjs $deplibs $linker_flags ${wl}-soname $wl$soname -o $lib'
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
else
ld_shlibs=no
fi
@@ -193,8 +191,8 @@ EOF
EOF
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $linker_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $linker_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ 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'
else
ld_shlibs=no
fi
@@ -219,8 +217,8 @@ EOF
if test "$ld_shlibs" = yes; then
runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec="$wlarc"'--rpath '"$wlarc"'$libdir'
- export_dynamic_flag_spec="$wlarc"'--export-dynamic'
+ hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
case $host_os in
cygwin* | mingw*)
# dlltool doesn't understand --whole-archive et. al.
@@ -673,10 +671,12 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then
verstring=
output_objdir=.
libname=conftest
+ save_allow_undefined_flag=$allow_undefined_flag
allow_undefined_flag=
if { (eval echo ltcf-c.sh:need_lc: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then
need_lc=no
fi
+ allow_undefined_flag=$save_allow_undefined_flag
else
cat conftest.err 1>&5
fi