summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2012-02-13 10:32:40 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-13 12:02:11 +0100
commitd4441b014803e782abcd9ab598df5035f0ff58ed (patch)
treeb6654caf5eb556bc24aaf8e44b79047751f07b1c /src/corelib/global
parent771a3f29f96d2004d6d39740180a80ef93567cb8 (diff)
Fix qmake compilation
No need to error out in bootstrapped mode because we don't use -fPIC Change-Id: I0cc2889c75b41968edfd8e801b9161a1eb63f6ef Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index ffeb8a2bab..0e4509362f 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -1784,7 +1784,7 @@ Q_CORE_EXPORT int qrand();
# endif
#endif
-#if defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__)
+#if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__)
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
"Compile your code with -fPIC or -fPIE."
#endif