--- trunk/mage/usr/lib/mage/smage2.sh 2012/01/13 13:17:21 1630 +++ trunk/mage/usr/lib/mage/smage2.sh 2012/01/13 13:20:22 1631 @@ -242,8 +242,24 @@ local myopts if [[ ! -z ${CTARGET} ]] then - myopts="--target=${CTARGET}" + myopts+=" --target=${CTARGET}" fi + # if requested disable-static + if [[ ! -z $(./configure --help | grep -- '--.*able-static') ]] + then + if mqueryfeature '!static' + then + myopts+=" --disable-static" + else + myopts+=" --enable-static" + fi + fi + + # always enable shared by default + if [[ ! -z $(./configure --help | grep -- '--.*able-shared') ]] + then + myopts+=" --enable-shared" + fi if [ -x ./configure ] then