Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2006 11:10:52 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-amd64@freebsd.org
Cc:        freebsd-gnats-submit@freebsd.org, Peter Grehan <grehan@freebsd.org>
Subject:   Re: amd64/102996: powerpc cross-build fails on amd64 host, works fine on i386
Message-ID:  <200609081110.53058.jhb@freebsd.org>
In-Reply-To: <200609072151.k87LpIGL037561@www.freebsd.org>
References:  <200609072151.k87LpIGL037561@www.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 07 September 2006 17:51, Peter Grehan wrote:
> %%%
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/src/gnu/usr.bin/binutils/libbfd/Makefile,v
> retrieving revision 1.33
> diff -u -r1.33 Makefile
> --- Makefile	24 Oct 2004 15:32:25 -0000	1.33
> +++ Makefile	26 Aug 2006 00:48:26 -0000
> @@ -48,6 +48,12 @@
>  CFLAGS+= -DSELECT_VECS="${SELVEC}"
>  CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR}
>  
> +.if ${TARGET_ARCH:M*64}
> +CFLAGS+= -DTARGET_64BIT=1
> +.else
> +CFLAGS+= -DTARGET_64BIT=0
> +.endif
> +

This doesn't match alpha (though that only matters if you MFC this).  Seems 
that a more general purpose solution would be to test TARGET_ARCH and use 
that to set TARGET properties (i.e. the bug seems to be that it's setting 
TARGET properties based on the host arch, which is wrong).

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609081110.53058.jhb>