From c1fe2bc130c8bf9deb99577dd64b40727dea795c Mon Sep 17 00:00:00 2001 From: Alberto Pedron Date: Wed, 15 Dec 2021 20:09:12 +0100 Subject: [PATCH] Fix libatomic linking on Rasperry Pi OS Bullseye (#28041) --- setup.py | 2 +- tools/distrib/python/grpcio_tools/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 62dc98ed4e1..f149d5efaa3 100644 --- a/setup.py +++ b/setup.py @@ -210,7 +210,7 @@ def check_linker_need_libatomic(): # Double-check to see if -latomic actually can solve the problem. # https://github.com/grpc/grpc/issues/22491 cpp_test = subprocess.Popen( - [cxx, '-x', 'c++', '-std=c++11', '-latomic', '-'], + [cxx, '-x', 'c++', '-std=c++11', '-', '-latomic'], stdin=PIPE, stdout=PIPE, stderr=PIPE) diff --git a/tools/distrib/python/grpcio_tools/setup.py b/tools/distrib/python/grpcio_tools/setup.py index 6b842f56b94..ad2d9035fea 100644 --- a/tools/distrib/python/grpcio_tools/setup.py +++ b/tools/distrib/python/grpcio_tools/setup.py @@ -98,7 +98,7 @@ def check_linker_need_libatomic(): # Double-check to see if -latomic actually can solve the problem. # https://github.com/grpc/grpc/issues/22491 cpp_test = subprocess.Popen( - [cxx, '-x', 'c++', '-std=c++11', '-latomic', '-'], + [cxx, '-x', 'c++', '-std=c++11', '-', '-latomic'], stdin=PIPE, stdout=PIPE, stderr=PIPE)