diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-20 09:26:56 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-20 09:26:56 +0000 |
commit | 46b021de99dc2e4a8d95a59ae3c279f9ca4a91fc (patch) | |
tree | 1dbf9dc4981a33157f673fc7a97d864b9e5e6ed1 /ltcf-cxx.sh | |
parent | 08078d479d75da325e154dc46441ac79949a35c2 (diff) | |
download | gcc-46b021de99dc2e4a8d95a59ae3c279f9ca4a91fc.tar.gz |
* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
1.641.2.228.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41452 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r-- | ltcf-cxx.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index aefc206f9e8..e3489146422 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -243,12 +243,14 @@ case $host_os in ld_shlibs=yes ;; hpux*) - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + export_dynamic_flag_spec='${wl}-E' + fi hardcode_direct=yes hardcode_minus_L=yes # Not in the search PATH, but as the default # location of the library. - export_dynamic_flag_spec='${wl}-E' case $cc_basename in CC) @@ -272,10 +274,12 @@ case $host_os in ;; *) if test $with_gcc = yes; then - case "$host_os" in - hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; - *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; - esac + if test $with_gnu_ld = no; then + case "$host_os" in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; + esac + fi else # FIXME: insert proper C++ library support ld_shlibs=no |