mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts
Date: Sun, 15 Jan 2012 21:28:53 +0100	[thread overview]
Message-ID: <1326659333-2686-1-git-send-email-bernhard@bwalle.de> (raw)

The build system of zlib uses 'uname' to determine the operating system
for which it compiles zlib. However, on non-Linux hosts, this leads to
wrong results.

Fixes Darwin (tested on Mac OS 10.7 Lion), doesn't break Linux (verified
with current Arch Linux on x86_64).

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/zlib.make |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rules/zlib.make b/rules/zlib.make
index 0d437e3..2013384 100644
--- a/rules/zlib.make
+++ b/rules/zlib.make
@@ -40,6 +40,7 @@ $(ZLIB_SOURCE):
 
 ZLIB_CONF_ENV := \
 	$(CROSS_ENV) \
+	uname=Linux \
 	CROSS_PREFIX=$(PTXCONF_COMPILER_PREFIX) \
 	CFLAGS="$(CROSS_CPPFLAGS) -O2 -g"
 
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2012-01-15 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-15 20:28 Bernhard Walle [this message]
2012-02-05  9:07 Bernhard Walle
2012-02-06 20:04 ` Michael Olbrich

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=1326659333-2686-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.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