Fix compilation with Clang (Remove limitation to -fPIE to only C)

/usr/include/qt5/QtCore/qglobal.h:1079:4: error:
"You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."

svn path=/trunk/; revision=53432
This commit is contained in:
Alexis La Goutte 2013-11-19 12:27:09 +00:00
parent 11b3ae8653
commit d28d1a8240
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ AC_WIRESHARK_LDFLAGS_CHECK([-Wl,--as-needed])
# in the address space to make attacks more difficult.
#
CFLAGS_before_pie=$CFLAGS
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fPIE, C)
AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fPIE)
if test "x$CLFAGS" != "x$CFLAGS_before_pie"
then
# Restore CFLAGS