From: Brian Paul Date: Thu, 25 Mar 2004 21:18:32 +0000 (+0000) Subject: more Darwin tweaks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c05658d15ee10b8cb5ac8d927b852d871777bfab;p=mesa.git more Darwin tweaks --- 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 ;;