--- trunk/mage/usr/lib/mage/smage2.functions.sh 2012/02/06 10:04:33 1679 +++ trunk/mage/usr/lib/mage/smage2.functions.sh 2012/02/06 10:07:01 1680 @@ -281,8 +281,9 @@ fi fi - # always enable shared by default - if [[ ! -z $(./configure --help | grep -- '--.*able-shared') ]] + # always enable shared by default but not for waf configure + if [[ ! -z $(./configure --help | grep -- '--.*able-shared') ]] && + [[ -z $(./configure --version | grep waf) ]] then myopts+=" --enable-shared" fi