public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6
Date: Sat, 22 May 2010 21:35:06 -0400	[thread overview]
Message-ID: <201005222135.07106.vapier@gentoo.org> (raw)
In-Reply-To: <1274527041-62757-1-git-send-email-andreas.devel@googlemail.com>

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@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 

  reply	other threads:[~2010-05-23  1:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22 11:17 [U-Boot] [PATCH v2] config.mk: use different host compiler for OS X 10.6 Andreas Bießmann
2010-05-23  1:35 ` Mike Frysinger [this message]
2010-05-26 20:33 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005222135.07106.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox