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:
parent
11b3ae8653
commit
d28d1a8240
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue