r2174 - in profiles/CLFS/trunk: alpha alpha/cross-tools mips mips/cross-tools mips64 mips64/cross-tools mips64-64 mips64-64/cross-tools ppc ppc/cross-tools sparc sparc/cross-tools sparc64 sparc64/cross-tools sparc64-64 sparc64-64/cross-tools x86 x86/cross-tools x86_64 x86_64/cross-tools x86_64-64 x86_64-64/cross-tools

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Sat Nov 12 16:18:38 PST 2005


Author: thomasp
Date: 2005-11-12 17:18:36 -0700 (Sat, 12 Nov 2005)
New Revision: 2174

Added:
   profiles/CLFS/trunk/alpha/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/mips/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/mips64-64/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/mips64/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/ppc/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/sparc/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/sparc64-64/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/sparc64/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/x86/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/x86_64-64/cross-tools/gcc-final.xml
   profiles/CLFS/trunk/x86_64/cross-tools/gcc-final.xml
Modified:
   profiles/CLFS/trunk/alpha/LFS.xml
   profiles/CLFS/trunk/mips/LFS.xml
   profiles/CLFS/trunk/mips64-64/LFS.xml
   profiles/CLFS/trunk/mips64/LFS.xml
   profiles/CLFS/trunk/ppc/LFS.xml
   profiles/CLFS/trunk/sparc/LFS.xml
   profiles/CLFS/trunk/sparc64-64/LFS.xml
   profiles/CLFS/trunk/sparc64/LFS.xml
   profiles/CLFS/trunk/x86/LFS.xml
   profiles/CLFS/trunk/x86_64-64/LFS.xml
   profiles/CLFS/trunk/x86_64/LFS.xml
Log:
added gcc-final

Modified: profiles/CLFS/trunk/alpha/LFS.xml
===================================================================
--- profiles/CLFS/trunk/alpha/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/alpha/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -34,6 +34,7 @@
       <xi:include href="cross-tools/glibc-headers.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="../common/cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/alpha/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/alpha/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/alpha/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/alpha/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/alpha/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/mips/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -33,6 +33,7 @@
       <xi:include href="../common/cross-tools/binutils.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/mips/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/mips/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-mips-tls-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-mips-tls-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-mips-tls-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/mips/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/mips64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -39,6 +39,7 @@
       <xi:include href="cross-tools/glibc-32.xml" />
       <xi:include href="cross-tools/glibc-n32.xml" />
       <xi:include href="cross-tools/glibc-64.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/mips64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/mips64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-mips-tls-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-mips-tls-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-mips-tls-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/mips64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/mips64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/mips64-64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips64-64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -34,6 +34,7 @@
       <xi:include href="cross-tools/binutils.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/mips64-64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/mips64-64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/mips64-64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-pure64-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-pure64-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-mips-tls-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-mips-tls-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-mips-pure64-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-mips-pure64-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-pure64-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-mips-tls-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-mips-pure64-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--with-abi=64</param>
+      	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--disable-multilib</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/mips64-64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/ppc/LFS.xml
===================================================================
--- profiles/CLFS/trunk/ppc/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/ppc/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -33,6 +33,7 @@
       <xi:include href="../common/cross-tools/binutils.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/ppc/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/ppc/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/ppc/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/rs6000/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/ppc/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/sparc/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -33,6 +33,7 @@
       <xi:include href="cross-tools/binutils.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/sparc/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/sparc/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/sparc/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/sparc/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/sparc64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -38,6 +38,7 @@
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc-32.xml" />
       <xi:include href="cross-tools/glibc-64.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/sparc64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/sparc64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/sparc/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <textdump mode="append">
+	<file>gcc/config/sparc/linux64.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>CFLAGS_FOR_TARGET="${GCCTARGET}"</param>
+	<param>CXXFLAGS_FOR_TARGET="${GCCTARGET}"</param>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/sparc64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/sparc64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/sparc64-64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc64-64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -35,6 +35,7 @@
       <xi:include href="cross-tools/binutils.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/sparc64-64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/sparc64-64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/sparc64-64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-pure64-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-pure64-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-pure64-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/sparc/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <textdump mode="append">
+	<file>gcc/config/sparc/linux64.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>CFLAGS_FOR_TARGET="${GCCTARGET}"</param>
+	<param>CXXFLAGS_FOR_TARGET="${GCCTARGET}"</param>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/sparc64-64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/x86/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -34,6 +34,7 @@
       <xi:include href="cross-tools/glibc-headers.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="../common/cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/x86/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/x86/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/x86/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/x86_64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86_64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86_64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -38,6 +38,7 @@
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="../multilib/cross-tools/glibc-32.xml" />
       <xi:include href="../multilib/cross-tools/glibc-64.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/x86_64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/x86_64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86_64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/x86_64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision

Modified: profiles/CLFS/trunk/x86_64-64/LFS.xml
===================================================================
--- profiles/CLFS/trunk/x86_64-64/LFS.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86_64-64/LFS.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -35,6 +35,7 @@
       <xi:include href="cross-tools/glibc-headers.xml" />
       <xi:include href="cross-tools/gcc-static.xml" />
       <xi:include href="cross-tools/glibc.xml" />
+      <xi:include href="cross-tools/gcc-final.xml" />
     </stage>
   </stage>
 </alfs>

Added: profiles/CLFS/trunk/x86_64-64/cross-tools/gcc-final.xml
===================================================================
--- profiles/CLFS/trunk/x86_64-64/cross-tools/gcc-final.xml	2005-11-12 23:39:39 UTC (rev 2173)
+++ profiles/CLFS/trunk/x86_64-64/cross-tools/gcc-final.xml	2005-11-13 00:18:36 UTC (rev 2174)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../../DTD/ALFS.dtd" 
+[
+<!ENTITY % general_entities SYSTEM "../../config/general.ent">
+<!ENTITY % common_package_entities SYSTEM "../../config/common-package.ent">
+
+%general_entities;
+%common_package_entities;
+
+]>
+<alfs>
+  <package name="gcc" version="&gcc-version;">
+    <stage name="Download and Check">
+      <download>
+	<file>&gcc-package;</file>
+	<url>&gcc-package-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-pure64-specs-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-pure64-specs-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-posix-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-posix-patch-md5;</digest>
+      </download>
+      <download>
+	<file>&gcc-cross-search-paths-patch;</file>
+	<url>&gcc-patches-url;</url>
+	<destination>&packages_dir;</destination>
+	<digest>&gcc-cross-search-paths-patch-md5;</digest>
+      </download>
+    </stage>
+    <stage name="Unpacking">
+      <unpack>
+	<archive>&packages_dir;/&gcc-package;</archive>
+	<destination>&build_dir;</destination>
+      </unpack>
+      <mkdir>
+	<name>gcc-build</name>
+      </mkdir>
+    </stage>
+    <stage name="Patching">
+      <stageinfo>
+	<base>&build_dir;/&gcc-directory;</base>
+      </stageinfo>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-pure64-specs-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-posix-patch;</param>
+      </patch>
+      <patch>
+	<param>-Np1</param>
+	<param>-i &packages_dir;/&gcc-cross-search-paths-patch;</param>
+      </patch>
+      <textdump mode="append">
+	<file>gcc/config/linux.h</file>
+	<content>
+	  =
+	  =#undef STARTFILE_PREFIX_SPEC
+	  =#define STARTFILE_PREFIX_SPEC "/tools/lib"
+	</content>
+      </textdump>
+      <copy>
+	<source>gcc/Makefile.in</source>
+	<destination>gcc/Makefile.in.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>"s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include at g"</param>
+	<param>gcc/Makefile.in.orig</param>
+	<param> > gcc/Makefile.in</param>
+      </execute>
+      <copy>
+      	<source>configure</source>
+	<destination>configure.orig</destination>
+      </copy>
+      <execute command="sed">
+	<param>-e</param>
+	<param>'/FLAGS_FOR_TARGET.*\/lib\//s at -B[^ ]*/lib/@@g'</param>
+	<param>configure.orig</param>
+	<param> > configure</param>
+      </execute>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+	<base>&build_dir;/gcc-build</base>
+      </stageinfo>
+      <configure command="../&gcc-directory;/configure">
+	<param>--prefix=/cross-tools</param>
+	<param>--target=${LFS_TARGET}</param>
+	<param>--host=${LFS_HOST}</param>
+	<param>--disable-multilib</param>
+	<param>--with-local-prefix=/tools</param>
+	<param>--disable-nls</param>
+	<param>--enable-shared</param>
+	<param>--enable-languages=c,c++</param>
+	<param>--enable-__cxa_atexit</param>
+	<param>--enable-c99</param>
+	<param>--enable-long-long</param>
+	<param>--enable-threads=posix</param>
+      </configure>
+      <make>
+	<param>AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as"</param>
+	<param>LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</param>
+      </make>
+      <make>
+	<param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&gcc-directory;</remove>
+      <remove>&build_dir;/gcc-build</remove>
+    </stage>
+  </package>
+<!--
+  $LastChangedDate$
+  $LastChangedBy$
+  $LastChangedRevision$
+-->
+</alfs>
+


Property changes on: profiles/CLFS/trunk/x86_64-64/cross-tools/gcc-final.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedDate LastChangedBy LastChangedRevision




More information about the alfs-log mailing list