summaryrefslogtreecommitdiffstats
path: root/bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch')
-rw-r--r--bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch b/bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch
new file mode 100644
index 00000000..9a7e3666
--- /dev/null
+++ b/bsp/meta-synopsys/recipes-qt/qt5/qtbase/0002-Fix-build-for-ARC-with-glibc-due-to-lack-of-FENV.patch
@@ -0,0 +1,54 @@
+From 7e9d89afc13815f9a203e75c2a64abc075310a3d Mon Sep 17 00:00:00 2001
+From: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
+Date: Tue, 26 Mar 2019 14:16:02 +0300
+Subject: [PATCH] Disable fenv.h for ARC with glibc
+
+Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
+---
+ src/corelib/tools/qlocale_tools.cpp | 2 +-
+ tests/auto/corelib/tools/qlocale/tst_qlocale.cpp | 2 +-
+ tests/auto/gui/painting/qpainter/tst_qpainter.cpp | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/corelib/tools/qlocale_tools.cpp b/src/corelib/tools/qlocale_tools.cpp
+index 4d969a4723..130340e516 100644
+--- a/src/corelib/tools/qlocale_tools.cpp
++++ b/src/corelib/tools/qlocale_tools.cpp
+@@ -53,7 +53,7 @@
+ #include <stdlib.h>
+ #include <time.h>
+
+-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
++#if defined(Q_OS_LINUX) && !defined(__UCLIBC__) && !defined(__arc__)
+ # include <fenv.h>
+ #endif
+
+diff --git a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp
+index f6e6545948..48b6180c7b 100644
+--- a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp
++++ b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp
+@@ -46,7 +46,7 @@
+ #include <private/qlocale_tools_p.h>
+ #include <qnumeric.h>
+
+-#if defined(Q_OS_LINUX) && defined(__GLIBC__)
++#if defined(Q_OS_LINUX) && defined(__GLIBC__) && !defined(__arc__)
+ # define QT_USE_FENV
+ #endif
+
+diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
+index 181c609c6e..a5c86ec845 100644
+--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
++++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
+@@ -2828,7 +2828,7 @@ void tst_QPainter::monoImages()
+ }
+ }
+
+-#if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__)
++#if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__) && !defined(__arc__)
+ #include <fenv.h>
+
+ static const QString fpeExceptionString(int exception)
+--
+2.16.2
+