Commit 7d0e1e0
committed
Use GCC -mno-direct-extern-access when building an x86/x86_64 coda_qt executable
...so that it wouldn't provide and export _ZN16QCoreApplication4selfE@Qt_6 when
it would mention any use of e.g. the qApp macro, which could cause coda_qt to
terminate with a SIGSEGV at start (cf. 9c8e658
"avoid Crash on startup of CODA-Q").
See the mailing list thread starting at
<https://lists.qt-project.org/pipermail/development/2025-December/046791.html>
"[Development] QT_FEATURE_reduce_relocations breaking executables that mention
qApp?" for details.
(Not entirely clear to me whether we would need -mno-direct-extern-access also
on any shared libraries (that link against Qt), if we would build any, but lets
restrict this to the CXXFLAGS of the coda_qt executable for now.)
Signed-off-by: Stephan Bergmann <[email protected]>
Change-Id: Iee5bcf0e1507692a8a4d3f2753f75c362fe9777e1 parent e5a2273 commit 7d0e1e0
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments