diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 2c06381a9c8..3aec70a9c60 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -12,7 +12,10 @@ license="Simplified BSD" bootstrap=yes -if [ "$CHROOT_READY" ]; then +if [ -z "$CHROOT_READY" ]; then + CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include" + LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib" +else hostmakedepends="which pkg-config" makedepends+=" atf-devel" configure_args+=" --enable-tests"