From 83ff3fe23a7ebbb800ec8fc7e46f238beb404954 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 24 Oct 2013 10:07:33 +0200 Subject: [PATCH] xbps: look for headers/libs in XBPS_MASTERDIR for the bootstrap build. --- srcpkgs/xbps/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"