This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
HP-UX libtool patch (was: Re: IRIX libtool patch)
- To: mark at codesourcery dot com
- Subject: HP-UX libtool patch (was: Re: IRIX libtool patch)
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 27 Apr 2001 14:14:39 -0300
- Cc: gcc-patches at gcc dot gnu dot org, libtool-patches at gnu dot org, oldham at codesourcery dot com
- References: <200104271626.f3RGQYP981732@n02.acl.lanl.gov>
On Apr 27, 2001, Mark P Mitchell <mark@codesourcery.com> wrote:
> Fri Apr 27 10:23:04 2001 Mark P Mitchell <mark@codesourcery.com>
> * ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.
BTW, I see the same problem on the HP-UX configuration for GCC, that I
added a few days ago :-(
I wonder if one of the HP-UX testers would find it helps with the
linker crashes or duplicate-symbol problems?
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds.
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.43
diff -u -p -r1.1.2.43 ltcf-cxx.sh
--- ltcf-cxx.sh 2001/04/27 17:07:33 1.1.2.43
+++ ltcf-cxx.sh 2001/04/27 17:13:28
@@ -276,8 +276,8 @@ case $host_os in
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
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me