summaryrefslogtreecommitdiffstats
path: root/grpc-build.patch
blob: f212fc0619043beec194da16a0302dc77736dc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -up ./config.m4.rpm ./config.m4
--- ./config.m4.rpm	2018-04-09 09:53:39.927037294 +0200
+++ ./config.m4	2018-04-09 09:54:28.015307629 +0200
@@ -12,8 +12,8 @@ if test "$PHP_GRPC" != "no"; then
 
   LIBS="-lpthread $LIBS"
 
-  CFLAGS="-Wall -Werror -Wno-parentheses-equality -Wno-unused-value -std=c11 -g -O2 -D PB_FIELD_32BIT=1"
-  CXXFLAGS="-std=c++11 -fno-exceptions -fno-rtti -g -O2 -D PB_FIELD_32BIT=1"
+  CFLAGS="$CFLAGS -std=c11 -D PB_FIELD_32BIT=1"
+  CXXFLAGS="$CXXFLAGS -std=c++11 -fno-exceptions -fno-rtti -D PB_FIELD_32BIT=1"
   GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD"
   PHP_REQUIRE_CXX()
   PHP_ADD_LIBRARY(pthread)