You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Declare required Libs.private in arrow.pc package config #16856
The current arrow.pc package config file produced is deficient and doesn't properly declare static libraries pre-requisities that must be linked in in order to statically link in libarrow.a
Currently it just has:
Libs: -L${libdir} -larrow
But in cases, e.g. where you enabled snappy, brotli or zlib support in arrow, our toolchains need to see an arrow.pc file something more like:
If not, we get linkage errors. I'm told the convention is that if the .a has an UNDEF, the Requires.private plus the Libs.private should resolve all the undefs. See the Libs.private info in https://linux.die.net/man/1/pkg-config
Note, however, as Sutou Kouhei pointed out in #5123 (comment) the additional Libs.private need to be dynamically generated based on whether functionality like snappy, brotli or zlib is enabled..
Wes McKinney / @wesm:
I'm handling the bundled static library issue by producing a "megabundle" of all the ExternalProject static libraries as libarrow_bundled_dependencies.a. Either this could be added to arrow.pc or static linkers will need to add this to their linker setup manually
Activity
asfimport commentedon Aug 30, 2019
Wes McKinney / @wesm:
Would you like to update your PR to make a change for 0.15.0?
asfimport commentedon Sep 6, 2019
Wes McKinney / @wesm:
I moved this out of 0.15.0. Patches welcome
asfimport commentedon Jul 9, 2020
Wes McKinney / @wesm:
I'm handling the bundled static library issue by producing a "megabundle" of all the ExternalProject static libraries as
libarrow_bundled_dependencies.a. Either this could be added to arrow.pc or static linkers will need to add this to their linker setup manuallyasfimport commentedon Feb 17, 2021
Antoine Pitrou / @pitrou:
cc @kou
asfimport commentedon Jul 5, 2021
Kouhei Sutou / @kou:
Issue resolved by pull request 10626
#10626