--- trunk/mage/usr/lib/mage/smage2.sh 2012/01/03 19:11:57 1604 +++ trunk/mage/usr/lib/mage/smage2.sh 2012/01/09 20:05:53 1613 @@ -237,6 +237,12 @@ mconfigure() { + local myopts + if [[ ! -z ${CTARGET} ]] + then + myopts="--target=${CTARGET}" + fi + if [ -x ./configure ] then ./configure \ @@ -249,6 +255,7 @@ --sysconfdir=/etc \ --localstatedir=/var/lib \ --libdir=/usr/$(mlibdir) \ + ${myopts} \ "$@" || die "mconfigure failed" else echo "configure is not an executable ..."