* ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds.
diff --git a/ChangeLog b/ChangeLog index c65fa1e..7690221 100644 --- a/ChangeLog +++ b/ChangeLog
@@ -1,3 +1,7 @@ +2001-04-27 Alexandre Oliva <aoliva@redhat.com> + + * ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds. + 2001-04-27 Mark P Mitchell <mark@codesourcery.com> * ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 8adf3e3..0fe09f5 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh
@@ -276,8 +276,8 @@ if test $with_gcc = yes; then 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' ;; + 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' ;; esac fi else