summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-07-28 13:04:46 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-07-29 23:04:21 +0200
commit349e74c06cd6be2705c7767f3c23935910fdadd4 (patch)
treed57a98af1d794d61c52e96d91a21d0e1dfabefba /src/corelib/global/qglobal.h
parentff8de321e22b1e91f7fc04ffe54609b045f23835 (diff)
Move the check for -fPIC compile flag to qcompilerdetection.h
Task-number: QTBUG-99313 Change-Id: I9072b73a75599381f5f2be0799bca5bf149122de Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r--src/corelib/global/qglobal.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index f6a6013518..c24bb6e198 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1227,13 +1227,6 @@ Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nu
#define QT_MODULE(x)
-#if defined(QT_BOOTSTRAPPED) || defined(QT_USE_PROTECTED_VISIBILITY) || !defined(__ELF__) || defined(__PIC__)
-// this is fine
-#elif defined(QT_REDUCE_RELOCATIONS)
-# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
- "Compile your code with -fPIC (and not with -fPIE)."
-#endif
-
// This macro can be used to calculate member offsets for types with a non standard layout.
// It uses the fact that offsetof() is allowed to support those types since C++17 as an optional
// feature. All our compilers do support this, but some issue a warning, so we wrap the offsetof()