summaryrefslogtreecommitdiff
path: root/ltcf-cxx.sh
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-04 22:52:03 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-04 22:52:03 +0000
commit7261cb98830e7914323204fc2592c0b449db0d9a (patch)
treee6b0190c88e3e138b27d5914853d75fe4d4032eb /ltcf-cxx.sh
parent84099d35647bd7d83163211f53892ee8cdee32f7 (diff)
downloadgcc-7261cb98830e7914323204fc2592c0b449db0d9a.tar.gz
* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltcf-cxx.sh')
-rw-r--r--ltcf-cxx.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index 22875d06f18..bdc67f97cf0 100644
--- a/ltcf-cxx.sh
+++ b/ltcf-cxx.sh
@@ -250,11 +250,17 @@ case $host_os in
;;
hpux*)
if test $with_gnu_ld = no; then
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ case "$host_cpu" in
+ ia64*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no ;;
+ *)
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' ;;
+ esac
+ hardcode_direct=yes
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.
@@ -283,7 +289,14 @@ case $host_os in
if test $with_gnu_ld = no; then
case "$host_os" in
hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared -nostdlib -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 -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
+ *)
+ case "$host_cpu" in
+ ia64*)
+ archive_cmds='$LD -b +h $soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' ;;
+ *)
+ archive_cmds='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;;
+ esac
+ ;;
esac
fi
else