Search pkgconf system libs/cflags#6138
Conversation
Could you elaborate on this a bit? It's potentially helpful to have this information to refer back to. |
Zlib and anything that has headers in the normal system libs/include folders seems to not get their headers picked up without this change. I think this issue is mostly going to be something people hit when cross compiling since the prefix based system libs/include folder would probably work in most of the usual cases(searching in Lines 494 to 495 in 0cf072d When cross compiling we try and make sure pkg-config points to the correct target sysroot however. |
|
@radarhere FYI there's some additional background/discussion around this issue here. |
89c9c34 to
e7836da
Compare
6c8a03b to
d09c91e
Compare
|
@radarhere Tests should be passing now, I've re-based on |
|
Yes, the tests will pass now, but the failure revealed a problem - on main, libtiff is detected. On this branch, it is not. |
Weird, on ubuntu 20.04 with |
d09c91e to
2f38cd5
Compare
2f38cd5 to
e967284
Compare
|
Ok, I stopped If I try on my macOS machine, So I guess those options are only available in certain environments. What is surprising though is that you say the flag works for you on your copy of Ubuntu 20.04, but it doesn't in GitHub Actions. Any ideas why that might be? Perhaps a solution would be to try |
Yeah, not sure why that is happening. Is the version in my ubuntu system.
That seems to work for me, merged to my branch here. |
|
The version number is was helpful, thanks - I think you are using pkgconf, not pkg-config. https://pkgs.org/download/pkg-config There is apparently a "compatibility interface" that means you can run it as pkg-config, hence the confusion. |
|
Ah, yeah, guess that explains why the fallback is needed for some systems. |
We need to search the system paths as well from pkg-config for some packages to be found properly.
2a2c54c to
6ec9dfb
Compare
|
Rebased on |
|
@radarhere This good to merge or anything else I should do? |


We need to search the system paths as well from pkg-config for some packages to be found properly.