|
@@ -582,6 +582,19 @@ if test x$enable_linker_hardening != xno; then
|
|
|
TOR_CHECK_LDFLAGS(-z relro -z now, "$all_ldflags_for_check", "$all_libs_for_check")
|
|
|
fi
|
|
|
|
|
|
+dnl ------------------------------------------------------
|
|
|
+dnl Now see if we have a -fomit-frame-pointer compiler option.
|
|
|
+
|
|
|
+saved_CFLAGS="$CFLAGS"
|
|
|
+TOR_CHECK_CFLAGS(-fomit-frame-pointer)
|
|
|
+if test "$saved_CFLAGS" != "$CFLAGS"; then
|
|
|
+ F_OMIT_FRAME_POINTER='-fomit-frame-pointer'
|
|
|
+else
|
|
|
+ F_OMIT_FRAME_POINTER=''
|
|
|
+fi
|
|
|
+CFLAGS="$saved_CFLAGS"
|
|
|
+AC_SUBST(F_OMIT_FRAME_POINTER)
|
|
|
+
|
|
|
dnl ------------------------------------------------------
|
|
|
dnl Where do you live, libnatpmp? And how do we call you?
|
|
|
dnl There are no packages for Debian or Redhat as of this patch
|