This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix cross build on powerpc*-*-freebsd
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 28 Sep 2012 13:30:47 +0200
- Subject: [patch] fix cross build on powerpc*-*-freebsd
Hi,
I didn't test building a cross compiler when I committed the port for
powerpc64-*-freebsd. And now I struggled myself when I wanted to build
an amd64-freebsd -> powerpc64-freebsd cross compiler.
With the below patch I'm able to do so.
Ok for trunk and 4.7 once I completed the test suite on both branches?
TIA,
Andreas
2012-09-28 Andreas Tobler <andreast@fgznet.ch>
* config.gcc: Replace 'host' with 'target' when configuring for
powerpc64*-*-freebsd.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 191819)
+++ gcc/config.gcc (working copy)
@@ -1919,7 +1919,7 @@
tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h"
extra_options="${extra_options} rs6000/sysv4.opt"
tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file}
rs6000/t-ppccomm"
- case ${host} in
+ case ${target} in
powerpc64*)
tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"
tmake_file="${tmake_file} rs6000/t-freebsd64"