aboutsummaryrefslogtreecommitdiff
path: root/depends/patches/qt
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-03-17 13:07:40 -0400
committerCarl Dong <contact@carldong.me>2021-04-05 11:00:39 -0400
commitc1ae726a13ecfa5e7e9fdc3030a8110b8bb263f8 (patch)
tree6c8606544b5f1122082c819317ce0a3f0bbc7146 /depends/patches/qt
parent39741128d3775d198dbee34dc827353bfd18acd8 (diff)
guix: More thoroughly control native toolchain
Diffstat (limited to 'depends/patches/qt')
-rw-r--r--depends/patches/qt/qtbase-moc-ignore-gcc-macro.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/depends/patches/qt/qtbase-moc-ignore-gcc-macro.patch b/depends/patches/qt/qtbase-moc-ignore-gcc-macro.patch
new file mode 100644
index 0000000000..0358bea6e9
--- /dev/null
+++ b/depends/patches/qt/qtbase-moc-ignore-gcc-macro.patch
@@ -0,0 +1,17 @@
+The moc executable loops through headers on CPLUS_INCLUDE_PATH and stumbles
+on the GCC internal _GLIBCXX_VISIBILITY macro. Tell it to ignore it as it is
+not supposed to be looking there to begin with.
+
+Upstream report: https://bugreports.qt.io/browse/QTBUG-83160
+
+diff --git a/qtbase/src/tools/moc/main.cpp b/qtbase/src/tools/moc/main.cpp
+--- a/qtbase/src/tools/moc/main.cpp
++++ b/qtbase/src/tools/moc/main.cpp
+@@ -188,6 +188,7 @@ int runMoc(int argc, char **argv)
+ dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER, "__VA_ARGS__");
+ pp.macros["__attribute__"] = dummyVariadicFunctionMacro;
+ pp.macros["__declspec"] = dummyVariadicFunctionMacro;
++ pp.macros["_GLIBCXX_VISIBILITY"] = dummyVariadicFunctionMacro;
+
+ QString filename;
+ QString output;