summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/Pkgfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/Pkgfile b/gcc/Pkgfile
index 56bdb8d..ab8714a 100644
--- a/gcc/Pkgfile
+++ b/gcc/Pkgfile
@@ -4,10 +4,10 @@ maintainer="Lukc <lukc AT upyum DOT com>"
url="http://$name.gnu.org"
depends=(binutils zlib libmpc)
-if [[ -z ${CROSS_TRIPLET} ]]; then
+if [[ -z ${CTARGET} ]]; then
name=gcc
else
- name=gcc-$CROSS_TRIPLET
+ name=gcc-$CTARGET
fi
version=4.5.2
release=1
@@ -23,9 +23,9 @@ build ()
mkdir build;
cd build;
../gcc-$version/configure \
- ${CHOST:+--build=${CHOST}} \
- ${CTARGET:+--host=${CTARGET}} \
- ${CROSS_TRIPLET:+--target=${CROSS_TRIPLET}} \
+ ${CBUILD:+--build=${CBUILD}} \
+ ${CHOST:+--host=${CHOST}} \
+ ${CTARGET:+--target=${CTARGET}} \
--prefix=$prefix \
--mandir=$mandir \
--libexecdir=$libdir \
@@ -38,7 +38,7 @@ build ()
--with-x=no \
--with-system-zlib \
--with-pkgversion="Nutritive";
- if [[ -z "${CROSS_TRIPLET}" ]]; then
+ if [[ -z "${CTARGET}" ]]; then
make bootstrap;
else
make;