gnu: Python 3.9: Fix CVE-2021-3177.
[jackhill/guix/guix.git] / gnu / packages / patches / qtbase-moc-ignore-gcc-macro.patch
CommitLineData
26e92a30
MB
1The moc executable loops through headers on CPLUS_INCLUDE_PATH and stumbles
2on the GCC internal _GLIBCXX_VISIBILITY macro. Tell it to ignore it as it is
3not supposed to be looking there to begin with.
4
5Upstream report: https://bugreports.qt.io/browse/QTBUG-83160
6
7diff --git a/src/tools/moc/main.cpp b/src/tools/moc/main.cpp
8--- a/src/tools/moc/main.cpp
9+++ b/src/tools/moc/main.cpp
10@@ -188,6 +188,7 @@ int runMoc(int argc, char **argv)
11 dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER, "__VA_ARGS__");
12 pp.macros["__attribute__"] = dummyVariadicFunctionMacro;
13 pp.macros["__declspec"] = dummyVariadicFunctionMacro;
14+ pp.macros["_GLIBCXX_VISIBILITY"] = dummyVariadicFunctionMacro;
15
16 QString filename;
17 QString output;