summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/mklib b/bin/mklib
index f2eb1da34dd..ef6dd129b59 100755
--- 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
;;