+2001-03-16 Albert Chin <china@thewrittenword.com>
+
+ * ltcf-cxx.sh (archive_cmds) [HP-UX, GCC]: Link with -fPIC.
+
2001-03-13 Alexandre Oliva <aoliva@redhat.com>
* ltconfig.in (lt_cv_compiler_c_o): Cache it.
*)
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