Darwin version fix (SF bug 1334274)
diff --git a/bin/mklib b/bin/mklib
index 77698d3..ce405d1 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -503,7 +503,7 @@
         else
             LIBNAME="lib${LIBNAME}.dylib"
             echo "mklib: Making Darwin shared library: " ${LIBNAME}
-            FLAGS="-dynamiclib -multiply_defined suppress"
+            FLAGS="-dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0"
 	    if [ $CPLUSPLUS = 1 ] ; then
 		LINK="g++"
 	    else