* [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts
@ 2012-01-15 20:28 Bernhard Walle
0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Walle @ 2012-01-15 20:28 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts
2012-02-05 9:07 Bernhard Walle
@ 2012-02-06 20:04 ` Michael Olbrich
0 siblings, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2012-02-06 20:04 UTC (permalink / raw)
To: ptxdist
On Sun, Feb 05, 2012 at 10:07:02AM +0100, Bernhard Walle wrote:
> 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>
> ---
> I think that one is okay but just got lost, right?
Ah, yes. I forgot about that. I've merged it now.
Michael
> rules/zlib.make | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/rules/zlib.make b/rules/zlib.make
> index 0d437e3..e51fe8a 100644
> --- a/rules/zlib.make
> +++ b/rules/zlib.make
> @@ -47,7 +47,8 @@ ZLIB_CONF_ENV := \
> # autoconf
> #
> ZLIB_AUTOCONF := \
> - --prefix=/usr
> + --prefix=/usr \
> + --uname=Linux
>
> ifdef PTXCONF_ZLIB_STATIC
> ZLIB_AUTOCONF += --static
> --
> 1.7.9
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts
@ 2012-02-05 9:07 Bernhard Walle
2012-02-06 20:04 ` Michael Olbrich
0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Walle @ 2012-02-05 9:07 UTC (permalink / raw)
To: ptxdist
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>
---
I think that one is okay but just got lost, right?
rules/zlib.make | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/rules/zlib.make b/rules/zlib.make
index 0d437e3..e51fe8a 100644
--- a/rules/zlib.make
+++ b/rules/zlib.make
@@ -47,7 +47,8 @@ ZLIB_CONF_ENV := \
# autoconf
#
ZLIB_AUTOCONF := \
- --prefix=/usr
+ --prefix=/usr \
+ --uname=Linux
ifdef PTXCONF_ZLIB_STATIC
ZLIB_AUTOCONF += --static
--
1.7.9
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-06 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-15 20:28 [ptxdist] [PATCH] zlib: Fix build on non-Linux hosts Bernhard Walle
2012-02-05 9:07 Bernhard Walle
2012-02-06 20:04 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox