diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 162b72a..131bdd4 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,13 @@ AC_SUBST(LIBM) GLIB_GSETTINGS +# check for PIE (position independent executable) support +AX_CHECK_COMPILE_FLAG([-fPIE], + [AX_CHECK_LINK_FLAG([-fPIE -pie], + [PIE_CFLAGS="-fPIE" PIE_LDFLAGS="-pie"])]) +AC_SUBST(PIE_CFLAGS) +AC_SUBST(PIE_LDFLAGS) + dnl --------------------------------------------------------------------------- dnl - Check library dependencies dnl --------------------------------------------------------------------------- |