summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-03-25 21:18:32 +0000
committerBrian Paul <[email protected]>2004-03-25 21:18:32 +0000
commitc05658d15ee10b8cb5ac8d927b852d871777bfab (patch)
tree4b87831da1060e0eb906743980f94936990db0fc /bin
parent77b47bb27bb8f36d2b0980ed78175d859a7d2bed (diff)
more Darwin tweaks
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
;;