diff options
author | Brian Paul <[email protected]> | 2004-03-25 21:18:32 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-25 21:18:32 +0000 |
commit | c05658d15ee10b8cb5ac8d927b852d871777bfab (patch) | |
tree | 4b87831da1060e0eb906743980f94936990db0fc /bin/mklib | |
parent | 77b47bb27bb8f36d2b0980ed78175d859a7d2bed (diff) |
more Darwin tweaks
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 7 |
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 ;; |