Commit 35e093ff authored by Erik Verbruggen's avatar Erik Verbruggen

Pass PIC/PIE options to gcc when asking for defines.

These influence the __PIC__ and __PIE__ macros.

Change-Id: I7938a897584f49b6e1c4d66c6e69ec7adccf2ad6
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 1f474a42
......@@ -403,7 +403,9 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
|| a.startsWith(QLatin1String("-specs="))
|| a == QLatin1String("-ansi") || a == QLatin1String("-undef")
|| a.startsWith(QLatin1String("-D")) || a.startsWith(QLatin1String("-U"))
|| a == QLatin1String("-fopenmp") || a == QLatin1String("-Wno-deprecated"))
|| a == QLatin1String("-fopenmp") || a == QLatin1String("-Wno-deprecated")
|| a == QLatin1String("-fPIC") || a == QLatin1String("-fpic")
|| a == QLatin1String("-fPIE") || a == QLatin1String("-fpie"))
arguments << a;
}
macros = gccPredefinedMacros(m_compilerCommand, reinterpretOptions(arguments),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment