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]
Other format: [Raw text]

stage libgcc multilibs as well


Just like crt* files, that I've arranged to have staged for all
multilibs in a previous patch, libgcc must be staged as well.  I
didn't run into problems on mips64-linux-gnu, but that's just because
no symbols from libgcc.a were needed during the bootstrap.  Should a
platform with multilib incompable ABIs, such that a non-`.' ABI is
chosen (by default, or from CFLAGS/STAGE1_CFLAGS/BOOT_CFLAGS), we
would lose.  Fixed with this patch, that I'm checking in.
Bootstrapped on mips64-linux-gnu, verified that libraries are staged
and the linker finds them.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva at redhat dot com>
	* mklibgcc.in (libgcc-stage-start): For every multilib  directory
	containing a libgcc.a, move lib* to the corresponding stage dir.

Index: gcc/mklibgcc.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mklibgcc.in,v
retrieving revision 1.57
diff -u -p -r1.57 mklibgcc.in
--- gcc/mklibgcc.in 12 Apr 2003 06:22:52 -0000 1.57
+++ gcc/mklibgcc.in 12 Apr 2003 09:03:22 -0000
@@ -430,6 +430,7 @@ echo '	  if [ -d $(stage)/$$dir ]; then 
 echo '	done'
 echo '	-for dir in '"${dirs}"'; do \'
 echo '	  mv $$dir/*'"${objext}"' $(stage)/$$dir; \'
+echo '	  test ! -f $$dir/libgcc.a || mv $$dir/lib* $(stage)/$$dir; \'
 echo '	done'
 
 echo ""
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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