kou opened a new pull request, #15075:
URL: https://github.com/apache/arrow/pull/15075

   If `ARROW_BUILD_SHARED=OFF` is specified, `pkg-config --cflags --libs arrow` 
doesn't work. Because `pkg-config --cflags --libs arrow` misses build options 
for static linking. Users need to specify `pkg-config --cflags --libs --static 
arrow` for static linking even when `ARROW_BUILD_SHARED=OFF` is specified.
   
   This change adds support for `pkg-config --cflags --libs arrow` with 
`ARROW_BUILD_SHARED=OFF`. The command outputs build options for linking against 
`libarrow.a`. But these build options don't use static linking for 
dependencies. On the other hand, `pkg-config --cflags --libs --static arrow` 
still use static linking for all libraries including Apache Arrow C++ and its 
dependencies.
   
   With this change, Apache Arrow R doesn't need to use `pkg-config --static`. 
Because `pkg-config --cflags --libs arrow` works for both of `libarrow.so` and 
`libarrow.a`.


-- 
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]

Reply via email to