Fix compilation with Clang (Remove limitation to -fPIE to only C)
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Nov 2013 12:27:09 +0000 (12:27 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Nov 2013 12:27:09 +0000 (12:27 +0000)
/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."

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@53432 f5534014-38df-0310-8fa8-9805f1628bb7

configure.ac

index 9f00ed8c1723721feff671e39eca664407d51a08..06367778ecda5103a3ee1781446add0d82f1d765 100644 (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