From 2c166647f1a54dfa768b4dda680c5953f54b9c3a Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 16 Jun 2022 20:49:00 +0100 Subject: [PATCH] Fix phpize to include _GNU_SOURCE by default This is to address the issue at https://github.com/php/php-src/commit/067df263448ee26013cddee1065bc9c1f028bd23#commitcomment-61578732 --- scripts/phpize.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index 1f0cbd70eb0..616d16420a5 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -164,7 +164,7 @@ all_targets='$(PHP_MODULES) $(PHP_ZEND_EX)' install_targets="install-modules install-headers" phplibdir="`pwd`/modules" CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H" -CFLAGS_CLEAN='$(CFLAGS)' +CFLAGS_CLEAN='$(CFLAGS) -D_GNU_SOURCE' CXXFLAGS_CLEAN='$(CXXFLAGS)' test "$prefix" = "NONE" && prefix="/usr/local"