diff --git a/srcpkgs/libarchive/template b/srcpkgs/libarchive/template index 6630a2be087..19424eca9b9 100644 --- a/srcpkgs/libarchive/template +++ b/srcpkgs/libarchive/template @@ -14,6 +14,11 @@ checksum=eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e bootstrap=yes +if [ -z "$CHROOT_READY" ]; then + CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include" + LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib" +fi + if [ "$CROSS_BUILD" ]; then hostmakedepends="libtool" pre_configure() {