mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-09-11 08:34:45 +02:00
qtbase: Replace -isystem with -I
Fixes no-x11 builds (eglfs) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -34,6 +34,7 @@ SRC_URI += "\
|
||||
file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
|
||||
file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
|
||||
file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
|
||||
file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
|
||||
"
|
||||
|
||||
# common for qtbase-native and nativesdk-qtbase
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 14 Feb 2018 17:08:43 -0800
|
||||
Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem
|
||||
|
||||
-isystem fails to build when code uses include_next on certain files e.g.
|
||||
|
||||
qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
|
||||
#include_next <stdlib.h>
|
||||
^~~~~~~~~~
|
||||
compilation terminated.
|
||||
make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
mkspecs/common/gcc-base.conf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
|
||||
index 234f71d495..ee3da023e6 100644
|
||||
--- a/mkspecs/common/gcc-base.conf
|
||||
+++ b/mkspecs/common/gcc-base.conf
|
||||
@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG += -g
|
||||
QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
|
||||
QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
|
||||
QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
|
||||
-QMAKE_CFLAGS_ISYSTEM = -isystem
|
||||
+QMAKE_CFLAGS_ISYSTEM = -I
|
||||
QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
|
||||
QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
|
||||
QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions
|
||||
--
|
||||
2.16.1
|
||||
|
||||
@@ -30,6 +30,7 @@ SRC_URI += "\
|
||||
file://0009-Add-OE-specific-specs-for-clang-compiler.patch \
|
||||
file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \
|
||||
file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \
|
||||
file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \
|
||||
"
|
||||
|
||||
# LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
|
||||
|
||||
Reference in New Issue
Block a user