[R][CI] Link order when not using pkg-config is wrong
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
As kou discovered in https://github.com/apache/arrow/issues/43337#issuecomment-2241297521 the link order in r/configure is wrong when not using pc as `libarrow_dataset` depends on `libarrow_acero`. So the order `-larrow_dataset -larrow_acero` is correct.
While we do have ci jobs using `ARROW_USE_PKG_CONFIG=false` the logic in configure mostly uses `PKG_CONFIG_AVAILABLE` which is only based on the availability of the `pkg-config` utility, this does not match what is documented and prevents our CI jobs to run the non-pc code paths.
### Component(s)
Continuous Integration, R
Contributor guide
Assessment
This issue has not been assessed yet.