This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.1 PATCH: Irix Libtool Patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: 3.1 PATCH: Irix Libtool Patch
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Wed, 9 May 2001 15:30:49 -0700
- Organization: CodeSourcery LLC
On 27 April, Mark Mitchell committed a libtool patch to gcc 3.0 to
avoid multiple inclusion of crtbegin.o and crtend.o on
mips-sgi-irix6.5, causing C++ execution failures. We apply the same
patch to gcc 3.1 to avoid the same problem.
2001-05-09 Jeffrey Oldham <oldham@codesourcery.com>
* ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.
Tested on mips-sgi-irix6.5
Approved by ???Mark Mitchell (mark@codesourcery.com)???
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvs/gcc/gcc/ltcf-cxx.sh,v
retrieving revision 1.12.2.5
retrieving revision 1.12.2.6
diff -c -p -r1.12.2.5 -r1.12.2.6
*** ltcf-cxx.sh 2001/04/20 09:27:25 1.12.2.5
--- ltcf-cxx.sh 2001/04/27 17:24:45 1.12.2.6
*************** case $host_os in
*** 302,310 ****
*)
if test "$with_gcc" = yes; then
if test "$with_gnu_ld" = no; then
! archive_cmds='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
else
! archive_cmds='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
fi
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
--- 302,310 ----
*)
if test "$with_gcc" = yes; then
if test "$with_gnu_ld" = no; then
! archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
else
! archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
fi
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'