diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2001-06-04 19:24:57 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-06-04 19:24:57 +0000 |
commit | 4aef4f331f857046f164896cd0ebdbdbbb05a4c4 (patch) | |
tree | 91b2dd532d5703912f269b753ef02719663394f4 | |
parent | 05ac674047c15068701b8dc3fdac7f62d239b2d7 (diff) | |
download | gcc-4aef4f331f857046f164896cd0ebdbdbbb05a4c4.zip gcc-4aef4f331f857046f164896cd0ebdbdbbb05a4c4.tar.gz gcc-4aef4f331f857046f164896cd0ebdbdbbb05a4c4.tar.bz2 |
ltcf-c.sh (archive_cmd): Use gcc to link shared archives.
* ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared
archives.
From-SVN: r42870
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ltcf-c.sh | 15 |
2 files changed, 16 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Mon Jun 4 16:24:43 2001 John David Anglin <dave@hiauly1.hia.nrc.ca> + + * ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared + archives. + Fri Jun 1 18:55:19 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * MAINTAINERS (Write After Approval): Add myself. @@ -411,10 +411,17 @@ else ;; hpux9* | hpux10* | hpux11*) - case $host_os in - hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; - esac + 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 $libobjs $deplibs $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 $libobjs $deplibs $compiler_flags' ;; + esac + else + case $host_os in + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; + esac + fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes |