add -fPIC to enforce position-independent code (necessary for gcc > 5.0), fixes #170

This commit is contained in:
Michael Rash 2015-11-29 21:30:41 -05:00
parent 8c7a007a4a
commit 0adb4ac2ba

View File

@ -282,8 +282,8 @@ AC_ARG_ENABLE([pie],
[])
if test "x$use_pie" = "xyes"; then
FKO_CHECK_COMPILER_ARG([-fPIE])
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-pie])
FKO_CHECK_COMPILER_ARG([-fPIE -fPIC])
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-pie -fPIC])
fi
dnl Decide whether or not to enable -D_FORTIFY_SOURCE support