From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 22 May 2010 01:14:36 -0400 Subject: [U-Boot] [PATCH] config.mk: use different host compiler for OS X 10.6 In-Reply-To: <1274477594-63398-1-git-send-email-andreas.devel@googlemail.com> References: <1274477594-63398-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <201005220114.37832.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 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