westonpace commented on pull request #10404:
URL: https://github.com/apache/arrow/pull/10404#issuecomment-855016717


   It appears that it is essentially a private dependency of libc which is not 
listed in libc.so.  It's very similar to `-lrt`.  I suspect we could probably 
add it here: 
https://github.com/apache/arrow/blob/98f352ed8325e9d9c01f9d840dec221311f7fb22/cpp/CMakeLists.txt#L879
   
   @nealrichardson 's solution is mostly correct and would work for R (and 
other consumers of the Arrow static library) but would fail for anyone 
consuming Arrow as a shared library on a raspberry pi.  So I think, in addition 
to listing it as a private lib, Arrow will still need to link it when building 
the shared library.
   
   The Arrow shared library would build without `-latomic` because Arrow 
doesn't make any calls to `-latomic` (those calls are made by `libc.so`).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to