Commit 2fb55015 authored by Jacob Appelbaum's avatar Jacob Appelbaum

Add new OTR_CHECK_CFLAGS/LDFLAGS options

checks for support LD support for -pie, --dynamicbase,
and --nxcompat on win32.

checks for support of CC support for -fPIE.
parent 3ef9e0f8
......@@ -149,6 +149,11 @@ if test x$enable_gcc_hardening != xno; then
if test "$bwin32" = "false"; then
OTR_CHECK_CFLAGS(-fPIE)
OTR_CHECK_LDFLAGS(-pie, "$all_ldflags_for_check", "$all_libs_for_check")
else
OTR_CHECK_CFLAGS(-fPIE)
OTR_CHECK_LDFLAGS(-pie, "$all_ldflags_for_check", "$all_libs_for_check")
OTR_CHECK_LDFLAGS(--dynamicbase, "$all_ldflags_for_check", "$all_libs_for_check")
OTR_CHECK_LDFLAGS(--nxcompat, "$all_ldflags_for_check", "$all_libs_for_check")
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment