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:
parent
921c9566f8
commit
11a6f8a681
|
@ -0,0 +1 @@
|
||||||
|
../configure/bootstrap.sh
|
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -z "$CHROOT_READY" ]; then
|
||||||
|
CFLAGS="-I${XBPS_MASTERDIR}/usr/include"
|
||||||
|
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
|
||||||
|
fi
|
|
@ -14,8 +14,6 @@ checksum=cee4568f78dc851d726fc93f25f4ed91cc223b1fe8259daa4a77158d174e6c65
|
||||||
|
|
||||||
if [ "$CHROOT_READY" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="gperf perl"
|
hostmakedepends="gperf perl"
|
||||||
else
|
|
||||||
LDFLAGS="-L${XBPS_MASTERDIR}/usr/lib"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
|
Loading…
Reference in New Issue