summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2017-06-02 20:45:42 (GMT)
committerMark Brand <mabrand@mabrand.nl>2017-06-02 20:52:51 (GMT)
commit43214bf7e886bd310965f854dd3a37b64c685bfa (patch)
tree352eb3a41bec951b8b7a7fff6b63ff223926c2d1 /src
parent13461793aaf2f6c00d8487ebcfe299298a56de2e (diff)
downloadmxe-43214bf7e886bd310965f854dd3a37b64c685bfa.zip
mxe-43214bf7e886bd310965f854dd3a37b64c685bfa.tar.gz
mxe-43214bf7e886bd310965f854dd3a37b64c685bfa.tar.bz2
sqlite: don't add standard include path to Cflags
Explicitly adding the standard include path causes it to end up in -isystem of gcc invocations in Qt builds. This can cause hard to diagnose failures to find system header files when building Qt.
Diffstat (limited to 'src')
-rw-r--r--src/sqlite.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqlite.mk b/src/sqlite.mk
index dc6cb86..6a3314f 100644
--- a/src/sqlite.mk
+++ b/src/sqlite.mk
@@ -18,6 +18,9 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ # The system include path doesn't belong in CFLAGS
+ # Causes problems like https://gitlab.kitware.com/cmake/cmake/issues/16919
+ $(SED) -i 's/^Cflags/#Cflags/;' '$(1)/sqlite3.pc.in'
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-readline \