This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

HP-UX libtool patch (was: Re: IRIX libtool patch)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]