Skip to content

Commit

Permalink
added full relro protection if the linker supports -z
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Jul 17, 2022
1 parent 93f5d7e commit 5cd6297
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ CFLAGS="$CFLAGS -fstack-protector-strong"

LDFLAGS="$LDFLAGS `pcre2-config --libs8`"

AX_CHECK_COMPILE_FLAG([-Wl,-z,relro,-z,now], [LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"], {}, [-Werror])

if test "$PHP_DEBUG" = "yes"; then
AC_DEFINE(SP_DEBUG, 1, [Enable SP debug messages])
CFLAGS="$CFLAGS -g -ggdb -O0"
Expand Down

0 comments on commit 5cd6297

Please sign in to comment.