Skip to contentSkip to conversation

qt4-native: disable precompiled headers

PATCH New Andreas Oberritter 1 participant 1 message Jul 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt4-native: disable precompiled headers

Using precompiled headers may lead to errors in parallel builds:

| In file included from <command-line>:0:0:
| /usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
|  #endif
|  ^
| /usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
| /usr/include/stdc-predef.h:59:1: fatal error: .pch/release-shared-emb-x86_64/QtCore: No such file or directory

Upstream bug report:
http://lists.qt-project.org/pipermail/development/2014-July/017689.html

Precompiled headers have been disabled for target builds from the beginning (commit 46bdf066 in OE-Core).

---
 recipes-qt4/qt4/qt4-native.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-qt4/qt4/qt4-native.inc +1 -0
index 58acac8..dac267b 100644
@@ -49,6 +49,7 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -exceptions -xmlpatterns \
                 -qt3support \
+                -no-pch \
                 -no-fast -silent -no-rpath"
 
 # yank default -e, otherwise we get the following error:
Signature · 1 line
1.9.1