xchat: fix cross compile

This commit is contained in:
Jürgen Buchmüller 2016-06-23 20:21:10 +02:00
parent 60d2b13ae1
commit e7e30f8887
1 changed files with 2 additions and 0 deletions

View File

@ -23,7 +23,9 @@ pre_configure() {
if [ "$CROSS_BUILD" ];then
perlflags=$(perl -MExtUtils::Embed -e ldopts | sed \
-e 's/-lgdbm //' \
-e 's/-mtune=generic//' \
-e "s#/usr/lib#${XBPS_CROSS_BASE}\0#")
sed -i "s#PERL_LDFLAGS=#\0$perlflags#" configure
sed -i "s#PERL_CFLAGS=#\0$CFLAGS#" configure
fi
}