-fstack-protector to LDFLAGS so it doesn't get stripped out. Libtool
will strip -fstack-protector from the linker flags and we always
link with libtool.
if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
CFLAGS="${CFLAGS} -fstack-protector"
- LDFLAGS="${LDFLAGS} -fstack-protector"
+ LT_LDFLAGS="${LT_LDFLAGS} -Wc,-fstack-protector"
else
:
AX_CHECK_COMPILE_FLAG([-fstack-protector], [
AX_CHECK_LINK_FLAG([-fstack-protector], [
CFLAGS="${CFLAGS} -fstack-protector"
- LDFLAGS="${LDFLAGS} -fstack-protector"
+ LT_LDFLAGS="${LT_LDFLAGS} -Wc,-fstack-protector"
])
])
AX_CHECK_LINK_FLAG([-Wl,-z,relro], [LDFLAGS="${LDFLAGS} -Wl,-z,relro"])