xbps-src: environment: set CFLAGS and LDFLAGS for the bootstrap case.

Fixes building bootstrap packages that need to find libs in masterdir
and not from the host.
This commit is contained in:
Juan RP 2015-04-21 08:32:59 +02:00
parent 921c9566f8
commit 11a6f8a681
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,4 @@
if [ -z "$CHROOT_READY" ]; then
CFLAGS="-I${XBPS_MASTERDIR}/usr/include"
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
fi