diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
commit | f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch) | |
tree | e907cb121b30e3c1df1710719c0ddf4029597a47 /dev-python/grpcio-tools/files | |
parent | db063b515939ab15261136b24e4bc44386335c0c (diff) |
gentoo resync : 30.09.2020
Diffstat (limited to 'dev-python/grpcio-tools/files')
-rw-r--r-- | dev-python/grpcio-tools/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/grpcio-tools/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch b/dev-python/grpcio-tools/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch new file mode 100644 index 000000000000..c6729e9808b4 --- /dev/null +++ b/dev-python/grpcio-tools/files/1.32.0-setup.py-respect-CC-variable-in-latomic-test.patch @@ -0,0 +1,28 @@ +From c8e7e1c3cd55bf44b6fad6afa716dec9de3bf14f Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev <gyakovlev@gentoo.org> +Date: Fri, 25 Sep 2020 15:34:19 -0700 +Subject: [PATCH] setup.py: respect CC variable in latomic test + +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 20a6d76..d1cd707 100644 +--- a/setup.py ++++ b/setup.py +@@ -164,9 +164,10 @@ ENABLE_DOCUMENTATION_BUILD = os.environ.get( + + def check_linker_need_libatomic(): + """Test if linker on system needs libatomic.""" ++ cc = os.environ.get('CC', 'cc') + code_test = (b'#include <atomic>\n' + + b'int main() { return std::atomic<int64_t>{}; }') +- cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'], ++ cc_test = subprocess.Popen([cc, '-x', 'c++', '-std=c++11', '-'], + stdin=PIPE, + stdout=PIPE, + stderr=PIPE) +-- +2.28.0 + |