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 <bernh...@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 via email to