diff options
| author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-03-25 21:18:32 +0000 |
|---|---|---|
| committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-03-25 21:18:32 +0000 |
| commit | c05658d15ee10b8cb5ac8d927b852d871777bfab (patch) | |
| tree | 4b87831da1060e0eb906743980f94936990db0fc | |
| parent | 77b47bb27bb8f36d2b0980ed78175d859a7d2bed (diff) | |
more Darwin tweaks
| -rwxr-xr-x | bin/mklib | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 ;; |
