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

Fixes Darwin (tested on Mac OS 10.7 Lion).

Signed-off-by: Bernhard Walle <bernh...@bwalle.de>
---
v3: Same as v1 but with SITECOPY_CONF_ENV instead of SITECOPY_AUTOCONF and with 
comment.

 rules/sitecopy.make |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/rules/sitecopy.make b/rules/sitecopy.make
index 44a7b8a..4434fe9 100644
--- a/rules/sitecopy.make
+++ b/rules/sitecopy.make
@@ -42,6 +42,14 @@ SITECOPY_AUTOCONF := $(CROSS_AUTOCONF_USR) \
        --without-socks \
        --without-gssapi
 
+# m4/neon/neon.m4 uses uname to check for Darwin and adds some special compiler
+# options in that case. sitecopy doesn't build host tools, so anything built
+# is for the target. We can force the target operating system to Linux. That's 
simpler
+# than fixing the m4/neon/neon.m4 and doesn't need autoreconf to run.
+SITECOPY_CONF_ENV      := \
+       $(CROSS_ENV) \
+       ne_cv_os_uname=Linux
+
 ifdef PTXCONF_SITECOPY_SFTP
 SITECOPY_AUTOCONF += --enable-sftp
 else
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to