rok commented on a change in pull request #11889:
URL: https://github.com/apache/arrow/pull/11889#discussion_r821047530
##########
File path: cpp/examples/arrow/CMakeLists.txt
##########
@@ -42,8 +42,12 @@ if(ARROW_FLIGHT)
message(FATAL_ERROR "Statically built gRPC requires ARROW_BUILD_STATIC=ON")
else()
set(FLIGHT_EXAMPLES_LINK_LIBS arrow_flight_static)
- set(GRPC_REFLECTION_LINK_LIBS -Wl,--whole-archive gRPC::grpc++_reflection
- -Wl,--no-whole-archive)
+ if(APPLE)
+ set(GRPC_REFLECTION_LINK_LIBS -Wl,-force_load gRPC::grpc++_reflection
-Wl)
Review comment:
So `all_load`/`noall_load` currently won't work due to symbol
duplication so `force-load` is the only option and there appears to be no
`noforce-load` option.
More [here](https://github.com/premake/premake-core/issues/1170).
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]