explicit paths for deps when cross compiling

This commit is contained in:
Dave Murphy 2018-05-11 18:42:22 +01:00
parent fec333d757
commit 53f6f731ba
2 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,7 @@ export PATH=$PATH:$TOOLPATH/$package/bin
if [ ! -z $CROSSBUILD ]; then
prefix=$INSTALLDIR/$CROSSBUILD/$package
CROSS_PARAMS="--build=`./config.guess` --host=$CROSSBUILD"
CROSS_GCC_PARAMS="--with-gmp=$CROSSPATH --with-mpfr=$CROSSPATH --with-mpc=$CROSSPATH"
else
prefix=$INSTALLDIR/$package
fi

View File

@ -64,6 +64,7 @@ then
--with-system-zlib \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 48" \
$CROSS_PARAMS \
$CROSS_GCC_PARAMS \
|| { echo "Error configuring gcc"; exit 1; }
touch configured-gcc
fi