Will Jones created ARROW-16870:
----------------------------------
Summary: [C++] lld does not like --as-needed flag
Key: ARROW-16870
URL: https://issues.apache.org/jira/browse/ARROW-16870
Project: Apache Arrow
Issue Type: Improvement
Components: C++
Affects Versions: 8.0.0
Reporter: Will Jones
Assignee: Will Jones
Fix For: 9.0.0
I've been getting this annoying linking error if I try to build examples using
Clang 13 on MacOS:
{code:none}
[build] [807/827] Linking CXX executable debug/flight-grpc-example
[build] FAILED: debug/flight-grpc-example
[build] : && /Library/Developer/CommandLineTools/usr/bin/c++ -Qunused-arguments
-fcolor-diagnostics ...
[build] ld: unknown option: --no-as-needed
[build] clang: error: linker command failed with exit code 1 (use -v to see
invocation)
{code}
Should we drop the {{--as-needed}} or should I carve out for Apple? cc
[~davidli]
My workaround has been to comment out these lines:
https://github.com/apache/arrow/blob/982ea6c4d382d1e85164f09b711e87938eaa674a/cpp/examples/arrow/CMakeLists.txt#L39-L40
--
This message was sent by Atlassian Jira
(v8.20.7#820007)