Fix linuxkms cross builds with latest pkg-config

Explicitly allow for cross-compilation with pkg-config to fix the failing libudev-sys builds.
This commit is contained in:
Simon Hausmann 2024-03-06 13:24:00 +01:00
parent 765c773b90
commit eebfbcd2a0
3 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes software-propert
git config --global safe.directory '*'
ENV PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
ENV PKG_CONFIG_ALLOW_CROSS=1
# In the absence of a sysroot, the header files we install earlier (such as libfontconfig1-dev:arm64) are in /usr/include
# so remember to teach bindgen to also look there, despite its --target.

View file

@ -20,6 +20,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes software-propert
git config --global safe.directory '*'
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
ENV PKG_CONFIG_ALLOW_CROSS=1
# In the absence of a sysroot, the header files we install earlier (such as libfontconfig1-dev:armhf) are in /usr/include
# so remember to teach bindgen to also look there, despite its --target.

View file

@ -20,6 +20,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes software-propert
git config --global safe.directory '*'
ENV PKG_CONFIG_PATH=/usr/lib/riscv64-linux-gnu/pkgconfig
ENV PKG_CONFIG_ALLOW_CROSS=1
# In the absence of a sysroot, the header files we install earlier (such as libfontconfig1-dev:riscv64) are in /usr/include
# so remember to teach bindgen to also look there, despite its --target.