bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IRIX libtool patch


From: Mark P Mitchell
Subject: IRIX libtool patch
Date: Fri, 27 Apr 2001 10:26:34 -0600 (MDT)

Presently, the C++ version of libtool links in crtbegin.o and crtend.o
multiple times on IRIX 6.5.  That is not good, and causes not only
linker warnings but also bogus initialization code.

This patch fixes the problem.

We are trying to avoid checking in libtool patches in the GCC tree,
preferring instead to import from the official libtool tree.  However,
this patch is criticial for the upcoming GCC 3.0 release, so if I do
not hear from the libtool maintainers about the correctness of this
patch within the next few days, I will check it in to the GCC tree.

Thanks, 

--
Mark Mitchell                   address@hidden
CodeSourcery, LLC               http://www.codesourcery.com

Fri Apr 27 10:23:04 2001  Mark P Mitchell  <address@hidden>

        * ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.

Index: ltcf-cxx.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltcf-cxx.sh,v
retrieving revision 1.12.2.5
diff -c -p -r1.12.2.5 ltcf-cxx.sh
*** ltcf-cxx.sh 2001/04/20 09:27:25     1.12.2.5
--- ltcf-cxx.sh 2001/04/27 16:22:52
*************** 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'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]