diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-15 12:38:18 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-20 14:54:19 -0700 |
commit | 78ef9e9d14f170c410c2fb52f5aada8421ed8f07 (patch) | |
tree | c2769fec067c8da70a5672f67610cab2c4e277d3 /mkspecs | |
parent | 552605b0fcab7974f3293b10c8c914c94703ecd3 (diff) | |
download | qtbase-78ef9e9d14f170c410c2fb52f5aada8421ed8f07.tar.gz |
Fix attempt to use -mno-direct-extern-access with Clang
Clang has the option, but spells it differently.
Fixes: QTBUG-105002
Pick-to: 6.4
Change-Id: I36b24183fbd041179f2ffffd170217e82ff6d14d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/unix/mno_extern_direct_access.prf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mkspecs/features/unix/mno_extern_direct_access.prf b/mkspecs/features/unix/mno_extern_direct_access.prf index 816e28bb43..2b7b3c8539 100644 --- a/mkspecs/features/unix/mno_extern_direct_access.prf +++ b/mkspecs/features/unix/mno_extern_direct_access.prf @@ -1,2 +1,7 @@ -QMAKE_CFLAGS += -mno-direct-extern-access -QMAKE_CXXFLAGS += -mno-direct-extern-access +clang { + QMAKE_CFLAGS += -fno-direct-access-external-data + QMAKE_CXXFLAGS += -fno-direct-access-external-data +} else { + QMAKE_CFLAGS += -mno-direct-extern-access + QMAKE_CXXFLAGS += -mno-direct-extern-access +} |