From 9faf25b9e7becf003444c88f0e23e792c7468d12 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 24 Oct 2013 10:06:51 +0200 Subject: [PATCH] libarchive: look for headers/libs in XBPS_MASTERDIR for the bootstrap build. --- srcpkgs/libarchive/template | 5 +++++ 1 file changed, 5 insertions(+) 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() {