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]

[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"



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