build() {
cd $name-$version
-
patch -p1 -i $SRC/$name-$version-gnueabihf.patch
sed -i 's|REVISION|REVISION " (CRUX)"|' $name/version.c
# apply a sed substitutio that will suppress the installation of libiberty.a
cd $SRC/build
LDFLAGS="-Wl,-rpath-link,$CROSSTOOLS/$CTARGET/lib" \
- ../$name-$version/configure --build=$MACHTYPE \
+ ../$name-$version/configure --build=$CHOST \
+ --host=$CTARGET \
+ --target=$CTARGET \
--prefix=/usr \
--mandir=/usr/man \
--libexecdir=/usr/lib \