From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 22 May 2010 21:35:06 -0400 Subject: [U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6 In-Reply-To: <1274527041-62757-1-git-send-email-andreas.devel@googlemail.com> References: <1274527041-62757-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <201005222135.07106.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -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