more Darwin tweaks
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 25 Mar 2004 21:18:32 +0000 (21:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 25 Mar 2004 21:18:32 +0000 (21:18 +0000)
bin/mklib

index f2eb1da34dd3942bff45fd0b784d4dba22eaab4d..ef6dd129b594462fe4a30865ab58cf8a2e4b9693 100755 (executable)
--- a/bin/mklib
+++ b/bin/mklib
@@ -363,7 +363,12 @@ case $ARCH in
             LIBNAME="${LIBNAME}.dylib"
             echo "mklib: Making Darwin libraries: " ${LIBNAME}
             FLAGS="-dynamiclib -multiply_defined suppress"
-            cc ${FLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
+           if [ $CPLUSPLUS = 1 ] ; then
+               LINK="g++"
+           else
+               LINK="cc"
+           fi
+            ${LINK} ${FLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
             FINAL_LIBS=${LIBNAME}
         fi
         ;;