txr: fix crossbuild
This commit is contained in:
@@ -12,10 +12,17 @@ distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz
|
|||||||
checksum=e26b2c6c8065711b82c03f84e0813e04dcb58d0e5cef6279dc34128c267025d3
|
checksum=e26b2c6c8065711b82c03f84e0813e04dcb58d0e5cef6279dc34128c267025d3
|
||||||
make_check_target=tests
|
make_check_target=tests
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" txr"
|
||||||
|
fi
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure --prefix=/usr --ccname="${CC}" \
|
./configure --prefix=/usr --ccname="${CC}" \
|
||||||
--platform-cflags="${CFLAGS}" \
|
--platform-cflags="${CFLAGS}" \
|
||||||
--platform-ldflags="${LDFLAGS}"
|
--platform-ldflags="${LDFLAGS}"
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
sed -i 's#^TXR :=.*#TXR = /usr/bin/txr#' Makefile
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_check() {
|
pre_check() {
|
||||||
|
|||||||
Reference in New Issue
Block a user