Re: [PATCH] Make pkg-config files cross-compile friendly

2021-09-03 Thread Peter Eisentraut
On 05.03.20 22:38, Sebastian Kemper wrote: This commit addresses this by doing the following two things: 1. Instead of hard coding the paths in "Cflags" and "Libs" "${includedir}" and "${libdir}" are used. Note: these variables can be overriden on the pkg-config command line

[PATCH] Make pkg-config files cross-compile friendly

2020-03-05 Thread Sebastian Kemper
Currently the pc files use hard coded paths for "includedir" and "libdir." Example: Cflags: -I/usr/include Libs: -L/usr/lib -lpq This is not very fortunate when cross compiling inside a buildroot, where the includes and libs are inside a staging directory, because this introduces host paths