patches/gcc/4.3.3/170-libiberty-pic.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 22:43:07 2011 +0200 (2011-07-17)
changeset 2893 a8a65758664f
permissions -rw-r--r--
cc/gcc: do not use the core pass-2 to build the baremetal compiler

In case we build a baremetal compiler, use the standard passes:
- core_cc is used to build the C library;
- as such, it is meant to run on build, not host;
- the final compiler is meant to run on host;

As the current final compiler step can not build a baremetal compiler,
call the core backend from the final step.

NB: Currently, newlib is built during the start_files pass, so we have
to have a core compiler by then... Once we can build the baremetal
compiler from the final cc step, then we can move the newlib build to
the proper step, and then get rid of the core pass-1 static compiler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1162
     1
Original patch from: ../4.3.2/170-libiberty-pic.patch
yann@1162
     2
yann@1162
     3
-= BEGIN original header =-
yann@1162
     4
Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/51_all_gcc-3.4-libiberty-pic.patch
yann@1162
     5
-= END original header =-
yann@1162
     6
yann@1162
     7
diff -durN gcc-4.3.3.orig/libiberty/Makefile.in gcc-4.3.3/libiberty/Makefile.in
yann@1162
     8
--- gcc-4.3.3.orig/libiberty/Makefile.in	2007-07-25 08:26:45.000000000 +0200
yann@1162
     9
+++ gcc-4.3.3/libiberty/Makefile.in	2009-01-27 22:19:30.000000000 +0100
yann@1162
    10
@@ -225,6 +225,7 @@
yann@1162
    11
 	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
yann@1162
    12
 	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
yann@1162
    13
 	  $(RANLIB) $(TARGETLIB); \
yann@1162
    14
+	  cp $(TARGETLIB) ../ ; \
yann@1162
    15
 	  cd ..; \
yann@1162
    16
 	else true; fi
yann@1162
    17