From ddc70629a99903be3a01568c936965b3604b9b78 Mon Sep 17 00:00:00 2001 From: Zheng SHAO Date: Wed, 21 Mar 2018 11:54:49 +0900 Subject: [PATCH 1/2] add missing FLAGS for pecl --- templates/config.m4.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/config.m4.template b/templates/config.m4.template index cd93fbd0fbe..c039c53ffa5 100644 --- a/templates/config.m4.template +++ b/templates/config.m4.template @@ -13,8 +13,8 @@ LIBS="-lpthread $LIBS" - CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11" - CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti" + CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11 -g -O2" + CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti -g -O2" GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD" PHP_REQUIRE_CXX() PHP_ADD_LIBRARY(pthread) From c4e4ca7d8fb1ec7733090eae791e7d7c44d12487 Mon Sep 17 00:00:00 2001 From: Zheng SHAO Date: Thu, 22 Mar 2018 08:23:38 +0900 Subject: [PATCH 2/2] regenerate config.m4 --- config.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.m4 b/config.m4 index 9b7b6bbc1b7..4e426eb7971 100644 --- a/config.m4 +++ b/config.m4 @@ -11,8 +11,8 @@ if test "$PHP_GRPC" != "no"; then LIBS="-lpthread $LIBS" - CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11" - CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti" + CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11 -g -O2" + CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti -g -O2" GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD" PHP_REQUIRE_CXX() PHP_ADD_LIBRARY(pthread)