[U-Boot] [PATCH] config.mk: use different host compiler for OS X 10.6

Mike Frysinger vapier at gentoo.org
Sat May 22 07:14:36 CEST 2010


On Friday 21 May 2010 17:33:14 Andreas Bießmann wrote:
>  ifeq ($(HOSTOS),darwin)
> +# get major and minor product version (e.g. 10.6 for Snow Leopard)
> +DARWIN_VERSION	= $(shell sw_vers -productVersion | cut -f 1,2 -d '.')
> +
> +# Snow Leopards build environmenthas no longer restrictions as described
> above +# TODO find a solution to match versions greater than 10.6
> +ifeq ($(DARWIN_VERSION),10.6)
> +HOSTCC		= gcc
> +else
>  HOSTCC		= cc
>  HOSTCFLAGS	+= -traditional-cpp
>  HOSTLDFLAGS	+= -multiply_defined suppress
> +endif

presumably this is going to remain true with 10.7+, so it'd probably make more 
sense to invert the check ... have the old code run with <=10.5
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100522/806954f1/attachment.pgp 


More information about the U-Boot mailing list