diff --git a/srcpkgs/chroot-util-linux/template b/srcpkgs/chroot-util-linux/template index a62ef3aa880..3ea0b7348b0 100644 --- a/srcpkgs/chroot-util-linux/template +++ b/srcpkgs/chroot-util-linux/template @@ -24,6 +24,11 @@ long_desc=" bootstrap=yes +if [ -z "$CHROOT_READY" ]; then + CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include" + LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib" +fi + post_install() { # Remove unused stuff. rm -rf ${DESTDIR}/bin