From patchwork Fri Sep 28 11:30:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fix cross build on powerpc*-*-freebsd From: Andreas Tobler X-Patchwork-Id: 187798 Message-Id: <50658A67.8090606@fgznet.ch> To: GCC Patches Date: Fri, 28 Sep 2012 13:30:47 +0200 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 * config.gcc: Replace 'host' with 'target' when configuring for powerpc64*-*-freebsd. tmake_file="${tmake_file} rs6000/t-freebsd64" 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"