Fix compile-time error macro when building with -fPIE
This macro causes a compile-time error using LLVM with Clang when the target that includes qglobal.h is built with -fPIE. Change-Id: I2e82e1a8feed9009c814f187b06501b26ea3b3b7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
88cf9402e3
commit
8b92d770a0
|
|
@ -1193,7 +1193,7 @@ Q_CORE_EXPORT int qrand();
|
|||
# define Q_OF_ELF
|
||||
#endif
|
||||
|
||||
#if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__)
|
||||
#if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue