Merge branch 'pr3'
https://src.fedoraproject.org/rpms/grpc/pull-request/3 Remove -std=gnu99 from setup.py script
This commit is contained in:
commit
2dadba5e8f
@ -28,6 +28,7 @@ Patch0: grpc-0001-enforce-system-crypto-policies.patch
|
||||
Patch2: grpc-0003-use-shell-loop-instead-makefile-function.patch
|
||||
Patch3: 99f8a10aec994a8957fbb6787768b444ef34d6a2.patch
|
||||
Patch4: 72351f63fd650cc7acfcd2d0307e8e8e8f777283.patch
|
||||
Patch5: remove-gnu99.patch
|
||||
|
||||
%description
|
||||
gRPC is a modern open source high performance RPC framework that can run in any
|
||||
@ -86,6 +87,7 @@ Python3 bindings for gRPC library.
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
sed -i 's:^prefix ?= .*:prefix ?= %{_prefix}:' Makefile
|
||||
sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:' Makefile
|
||||
sed -i 's:^GTEST_LIB =.*::' Makefile
|
||||
|
12
remove-gnu99.patch
Normal file
12
remove-gnu99.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ruN grpc-1.26.0.orig/setup.py grpc-1.26.0/setup.py
|
||||
--- grpc-1.26.0.orig/setup.py 2019-12-18 02:29:27.000000000 +0100
|
||||
+++ grpc-1.26.0/setup.py 2020-12-09 08:41:38.202678255 +0100
|
||||
@@ -179,7 +179,7 @@
|
||||
# available dynamically
|
||||
EXTRA_ENV_COMPILE_ARGS += ' /MT'
|
||||
elif "linux" in sys.platform:
|
||||
- EXTRA_ENV_COMPILE_ARGS += ' -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions'
|
||||
+ EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions'
|
||||
elif "darwin" in sys.platform:
|
||||
EXTRA_ENV_COMPILE_ARGS += ' -stdlib=libc++ -fvisibility=hidden -fno-wrapv -fno-exceptions'
|
||||
|
Loading…
Reference in New Issue
Block a user