From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20533 invoked by alias); 21 Nov 2010 02:03:25 -0000 Received: (qmail 20523 invoked by uid 22791); 21 Nov 2010 02:03:23 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_05 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 21 Nov 2010 02:03:18 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id 622F86370BD5; Sun, 21 Nov 2010 11:03:44 +0900 (JST) Received: from mail.pizzafactory.jp ([127.0.0.1]) by localhost (ldap.monami-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FUv5TPYs7zQX; Sun, 21 Nov 2010 11:03:43 +0900 (JST) Received: from [172.16.80.13] (s209.GtokyoFL1.vectant.ne.jp [202.215.14.209]) by mail.pizzafactory.jp (Postfix) with ESMTP id 524966370BC3; Sun, 21 Nov 2010 11:03:43 +0900 (JST) From: Masaki Muranaka Content-Type: multipart/mixed; boundary=Apple-Mail-8-612663638 Subject: [ping/RFC] Fwd: [sim] canadian cross build for m32c-elf target. Date: Sun, 21 Nov 2010 02:03:00 -0000 References: To: gdb-patches@sourceware.org, DJ Delorie Message-Id: <925CEAD7-5E61-4380-8DF7-3D01EC99B99F@monami-software.com> Mime-Version: 1.0 (Apple Message framework v1082) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00295.txt.bz2 --Apple-Mail-8-612663638 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-2022-jp Content-length: 818 Hello, Ping. Ok to apply? (I'll change ChangeLog date later) Begin forwarded message: > sender: Masaki Muranaka > date: 2010=1B$BG/=1B(B1=1B$B7n=1B(B5=1B$BF|=1B(B 15:04:59JST > to: gdb-patches@sourceware.org > subject: [sim] canadian cross build for m32c-elf target. >=20 > Hello. >=20 > I had an build time error like follows when I configured with target=3Dm3= 2c-elf, host=3Di386-pc-mingw32, build=3Dx86_64-darwin. >=20 > /bin/sh: ./opc2c: cannot execute binary file >=20 > opc2c must be built by CC_FOR_BUILD instead of CC as it is expected to ru= n on build machine, right? >=20 >=20 > 2010-01-05 Masaki Muranaka >=20 > * sim/m32c/Makefile.in : Use CC_FOR_BUILD to build opc2c. >=20 >=20 >=20 >=20 >=20 > -- > Masaki Muranaka > Monami software >=20 --Apple-Mail-8-612663638 Content-Disposition: attachment; filename=0001-Makefile.in-Use-CC_FOR_BUILD-to-build-opc2c.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Makefile.in-Use-CC_FOR_BUILD-to-build-opc2c.patch" Content-Transfer-Encoding: quoted-printable Content-length: 1711 >From 4b170eafcb1f810b70f96cf61040f1577e7b3147 Mon Sep 17 00:00:00 2001=0D= =0A= From: Masaki Muranaka =0D=0A= Date: Tue, 5 Jan 2010 14:47:12 +0900=0D=0A= Subject: [PATCH] Makefile.in: Use CC_FOR_BUILD to build opc2c.=0D=0A= =0D=0A= =0D=0A= Signed-off-by: Masaki Muranaka =0D=0A= ---=0D=0A= sim/m32c/Makefile.in | 10 +++++++---=0D=0A= 1 files changed, 7 insertions(+), 3 deletions(-)=0D=0A= =0D=0A= diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in=0D=0A= index c304ab8..72e9032 100644=0D=0A= --- a/sim/m32c/Makefile.in=0D=0A= +++ b/sim/m32c/Makefile.in=0D=0A= @@ -55,7 +55,7 @@ m32c.c : m32c.opc opc2c=0D=0A= ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c=0D=0A= =0D=0A= opc2c : opc2c.o safe-fgets.o=0D=0A= - $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@=0D=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)= =0D=0A= =0D=0A= sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld=0D=0A= ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o= =0D=0A= @@ -82,10 +82,14 @@ load.o : load.h cpu.h mem.h=0D=0A= main.o : cpu.h mem.h misc.h load.h=0D=0A= mem.o : mem.h cpu.h syscalls.h=0D=0A= misc.o : cpu.h misc.h=0D=0A= -opc2c.o : safe-fgets.h=0D=0A= reg.o : cpu.h=0D=0A= -safe-fgets.o : safe-fgets.h=0D=0A= srcdest.c : cpu.h mem.h=0D=0A= syscalls.c : cpu.h mem.h syscalls.h=0D=0A= =0D=0A= r8c.o : cpu.h mem.h misc.h int.h=0D=0A= +=0D=0A= +opc2c.o : opc2c.c safe-fgets.h=0D=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c=0D=0A= +=0D=0A= +safe-fgets.o : safe-fgets.c safe-fgets.h=0D=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c=0D=0A= -- =0D=0A= 1.6.5.2=0D=0A= =0D=0A= --Apple-Mail-8-612663638 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-length: 1 --Apple-Mail-8-612663638--