From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.98]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RmWhF-00048l-5Z for ptxdist@pengutronix.de; Sun, 15 Jan 2012 21:28:58 +0100 Received: from [93.104.154.253] (helo=galilei.fritz.box) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1RmWhE-0000hM-8n for ptxdist@pengutronix.de; Sun, 15 Jan 2012 21:28:56 +0100 From: Bernhard Walle Date: Sun, 15 Jan 2012 21:28:53 +0100 Message-Id: <1326659333-2686-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 --- 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