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