[U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6
Mike Frysinger
vapier at gentoo.org
Sun May 23 03:35:06 CEST 2010
On Saturday 22 May 2010 07:17:21 Andreas Bießmann wrote:
> +# get major and minor product version (e.g. '10' and '6' for Snow Leopard)
> +DARWIN_MAJOR_VERSION = $(shell sw_vers -productVersion | cut -f 1 -d '.')
> +DARWIN_MINOR_VERSION = $(shell sw_vers -productVersion | cut -f 2 -d '.')
> +
> +before-snow-leopard = $(shell if [ $(DARWIN_MAJOR_VERSION) -le 10 -a \
> + $(DARWIN_MINOR_VERSION) -le 5 ] ; then echo "$(1)"; else echo "$(2)"; fi
> ;) +
> +# Snow Leopards build environment has no longer restrictions as described
> above +HOSTCC = $(call before-snow-leopard, "cc", "gcc")
> +HOSTCFLAGS += $(call before-snow-leopard, "-traditional-cpp")
> +HOSTLDFLAGS += $(call before-snow-leopard, "-multiply_defined suppress")
it stinks that the make language isnt more flexible, but given the limitations
of it, this looks OK to me. thanks !
Acked-by: Mike Frysinger <vapier at gentoo.org>
-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/86a2fc49/attachment.pgp
More information about the U-Boot
mailing list