change charm to not build shared library form by default. build with --build-shared...
[charm.git] / build
diff --git a/build b/build
index 7f8044b23469c118072b726f967059c0051dd766..6c70800db63e9a65dbb3370f0860bbbe2cd54ce5 100755 (executable)
--- a/build
+++ b/build
@@ -210,7 +210,7 @@ BASEDIR=
 LIBDIR=
 INCDIR=
 ARCH=
-BUILD_SHARED=
+BUILD_SHARED=""             # default no shared lib
 WITH_ROMIO=
 WITH_PRODUCTION=
 BUILD_EMULATOR=0
@@ -294,8 +294,14 @@ do
                done
                shift
                ;;
-    --no-build-shared|-nobs|--no-shared)
-               BUILD_SHARED="-nobs"; shift
+    --no-build-shared|--no-shared)
+               #BUILD_SHARED="-no-build-shared"; 
+               shift
+               ;;
+    --build-shared)
+               # obsolete, do nothing
+               BUILD_SHARED="-build-shared"; 
+               shift
                ;;
     --with-romio)
                WITH_ROMIO="true"; shift
@@ -312,10 +318,6 @@ do
                CONFIG_OPTS="$CONFIG_OPTS $1"
                shift
                ;;
-    --build-shared|-bs)
-               # obsolete, do nothing
-               shift
-               ;;
     --destination)
                shift
                DESTINATION="$1"
@@ -552,8 +554,10 @@ then
     done
 fi
 
-if test  -n "$BUILD_SHARED" 
+if test  "$BUILD_SHARED"  = "-build-shared"
 then
+    echo "CMK_NO_BUILD_SHARED=false" >> $ConvSh
+else
     echo "CMK_NO_BUILD_SHARED=true" >> $ConvSh
 fi