summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-05 14:31:57 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-05 15:05:59 +0100
commit9742e6489a9dbca83324df481434c7f1b030d6ba (patch)
treebf6cac1b880939d7dd646cf1273d671b487179b5
parent7c1e2b2852b085755fccc645624efbd3783814d7 (diff)
downloadOSELAS.Toolchain-9742e6489a9dbca83324df481434c7f1b030d6ba.tar.gz
OSELAS.Toolchain-9742e6489a9dbca83324df481434c7f1b030d6ba.tar.xz
glibc-headers: fix building with newer ptxdist
PTXdist now enforces strict option checking. This must be disabled here, because --enable-hacker-mode is not a real option. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/glibc-headers.make8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/glibc-headers.make b/rules/glibc-headers.make
index f0086a0..adb7d2f 100644
--- a/rules/glibc-headers.make
+++ b/rules/glibc-headers.make
@@ -94,6 +94,14 @@ GLIBC_HEADERS_CONF_OPT = \
\
--enable-hacker-mode
+$(STATEDIR)/glibc-headers.prepare:
+ @$(call targetinfo)
+# # --enable-hacker-mode is not a real option but needed here
+ @sed -i "s:^\(enable_option_checking\)=.*:\1=no:" \
+ $(GLIBC_HEADERS_DIR)/configure
+ @$(call world/prepare, GLIBC_HEADERS)
+ @$(call touch)
+
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------