From: Albert Chin Date: Fri, 16 Mar 2001 03:56:31 +0000 (+0000) Subject: * ltcf-cxx.sh (archive_cmds) [HP-UX, GCC]: Link with -fPIC. X-Git-Tag: multi-language-merge-point~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c54e58defe8f12f83e6e0af2323ece772bf8a0e4;p=thirdparty%2Flibtool.git * ltcf-cxx.sh (archive_cmds) [HP-UX, GCC]: Link with -fPIC. --- diff --git a/ChangeLog b/ChangeLog index 3fbe67a9f..d7c4ecffe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-03-16 Albert Chin + + * ltcf-cxx.sh (archive_cmds) [HP-UX, GCC]: Link with -fPIC. + 2001-03-13 Alexandre Oliva * ltconfig.in (lt_cv_compiler_c_o): Cache it. diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 395b998f8..d7cdf6909 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -269,8 +269,8 @@ case $host_os in *) if test $with_gcc = yes; then case "$host_os" in - hpux9*) archive_cmds='$rm $output_objdir/$soname~$CC -shared ${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 ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; + 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 else # FIXME: insert proper C++ library support