mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-25 07:22:27 -05:00
use right prefix for tools
This commit is contained in:
parent
c021bf4c57
commit
49d8b5dc46
|
|
@ -153,9 +153,11 @@ export PATH=$PATH:$TOOLPATH/$package/bin
|
||||||
|
|
||||||
if [ ! -z $CROSSBUILD ]; then
|
if [ ! -z $CROSSBUILD ]; then
|
||||||
prefix=$INSTALLDIR/$CROSSBUILD/$package
|
prefix=$INSTALLDIR/$CROSSBUILD/$package
|
||||||
|
toolsprefix=$INSTALLDIR/$CROSSBUILD/tools
|
||||||
CROSS_PARAMS="--build=`./config.guess` --host=$CROSSBUILD"
|
CROSS_PARAMS="--build=`./config.guess` --host=$CROSSBUILD"
|
||||||
CROSS_GCC_PARAMS="--with-gmp=$CROSSPATH --with-mpfr=$CROSSPATH --with-mpc=$CROSSPATH"
|
CROSS_GCC_PARAMS="--with-gmp=$CROSSPATH --with-mpfr=$CROSSPATH --with-mpc=$CROSSPATH"
|
||||||
else
|
else
|
||||||
|
toolsprefix=$INSTALLDIR/tools
|
||||||
prefix=$INSTALLDIR/$package
|
prefix=$INSTALLDIR/$package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ do
|
||||||
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
||||||
cd $BUILDDIR/$dir
|
cd $BUILDDIR/$dir
|
||||||
if [ ! -f configured ]; then
|
if [ ! -f configured ]; then
|
||||||
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=/opt/devkitpro/tools $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=$toolsprefix $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
||||||
touch configured
|
touch configured
|
||||||
fi
|
fi
|
||||||
if [ ! -f built ]; then
|
if [ ! -f built ]; then
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ do
|
||||||
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
||||||
cd $BUILDDIR/$dir
|
cd $BUILDDIR/$dir
|
||||||
if [ ! -f configured ]; then
|
if [ ! -f configured ]; then
|
||||||
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=/opt/devkitpro/tools $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=$toolsprefix $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
||||||
touch configured
|
touch configured
|
||||||
fi
|
fi
|
||||||
if [ ! -f built ]; then
|
if [ ! -f built ]; then
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ do
|
||||||
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
||||||
cd $BUILDDIR/$dir
|
cd $BUILDDIR/$dir
|
||||||
if [ ! -f configured ]; then
|
if [ ! -f configured ]; then
|
||||||
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=/opt/devkitpro/tools --disable-dependency-tracking $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=$toolsprefix --disable-dependency-tracking $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
||||||
touch configured
|
touch configured
|
||||||
fi
|
fi
|
||||||
if [ ! -f built ]; then
|
if [ ! -f built ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user