From: Brian Paul Date: Wed, 28 Jan 2004 22:54:33 +0000 (+0000) Subject: fix C++ link issues on IRIX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ca723f5f547a31c074b290fc5aad25017c2b5ab;p=mesa.git fix C++ link issues on IRIX --- diff --git a/bin/mklib b/bin/mklib index 694a60bd172..317abc06957 100755 --- a/bin/mklib +++ b/bin/mklib @@ -238,7 +238,12 @@ case $ARCH in OPTS="-n32 -shared -all" echo "mklib: Making IRIX n32-bit shared library: " ${LIBNAME} fi - ld ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} + if [ $CPLUSPLUS = 1 ] ; then + LINK="CC" + else + LINK="ld" + fi + ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} FINAL_LIBS="${LIBNAME}" ;; @@ -247,7 +252,12 @@ case $ARCH in echo "mklib: Making IRIX64 library: " ${LIBNAME} # 64-bit ABI OPTS="-64 -shared -all" - ld ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} + if [ $CPLUSPLUS = 1 ] ; then + LINK="CC" + else + LINK="ld" + fi + ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} FINAL_LIBS="${LIBNAME}" ;;