mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-12 20:46:01 -05:00
add native tools to path when cross building
This commit is contained in:
@@ -118,15 +118,10 @@ fi
|
||||
echo use $MAKE as make
|
||||
export MAKE
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Add installed devkit to the path, adjusting path on minsys
|
||||
#---------------------------------------------------------------------------------
|
||||
TOOLPATH=$(echo $INSTALLDIR | sed -e 's/^\([a-zA-Z]\):/\/\1/')
|
||||
export PATH=$TOOLPATH/$package/bin:$PATH
|
||||
|
||||
CROSS_PARAMS="--build=`./config.guess`"
|
||||
|
||||
if [ ! -z $CROSSBUILD ]; then
|
||||
export PATH=/opt/devkitpro/$package/bin:$PATH
|
||||
prefix=$INSTALLDIR/$CROSSBUILD/$package
|
||||
CROSS_PARAMS="$CROSS_PARAMS --host=$CROSSBUILD"
|
||||
CROSS_GCC_PARAMS="--with-gmp=$CROSSPATH --with-mpfr=$CROSSPATH --with-mpc=$CROSSPATH"
|
||||
@@ -134,6 +129,12 @@ else
|
||||
prefix=$INSTALLDIR/$package
|
||||
fi
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Add installed devkit to the path, adjusting path on minsys
|
||||
#---------------------------------------------------------------------------------
|
||||
TOOLPATH=$(echo $INSTALLDIR | sed -e 's/^\([a-zA-Z]\):/\/\1/')
|
||||
export PATH=$TOOLPATH/$package/bin:$PATH
|
||||
|
||||
if [ "$BUILD_DKPRO_AUTOMATED" != "1" ] ; then
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user