summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-05 14:33:43 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-07 08:52:21 +0100
commitf85d8a81fe8d95716b46d95ca84e4bca5cf20ee3 (patch)
tree77839f485b6a2fd16e88f979e3f869a3f0e65310
parentaf688fbd21801d728e0a5f792466152a6cd9b84e (diff)
downloadOSELAS.Toolchain-f85d8a81fe8d95716b46d95ca84e4bca5cf20ee3.tar.gz
newlib: fix building with newer ptxdist
This is needed to propagate configure options. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/newlib.make8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/newlib.make b/rules/newlib.make
index e9afe02..17716c5 100644
--- a/rules/newlib.make
+++ b/rules/newlib.make
@@ -43,4 +43,12 @@ NEWLIB_CONF_OPT := \
--disable-newlib-supplied-syscalls \
--with-newlib
+$(STATEDIR)/newlib.prepare:
+ @$(call targetinfo)
+# # unknown options a propagated to newlib/configure
+ @sed -i "s:^\(enable_option_checking\)=.*:\1=no:" \
+ $(NEWLIB_DIR)/configure
+ @$(call world/prepare, NEWLIB)
+ @$(call touch)
+
# vim: syntax=make