use cxx compiler to build static libs on sgi

This commit is contained in:
Bill Hoffman 2001-12-18 17:16:25 -05:00
parent ccec141974
commit c3f1e86aa9
1 changed files with 8 additions and 0 deletions

View File

@ -669,6 +669,14 @@ case $system in
CMAKE_AR="$CXX"
CMAKE_AR_ARGS="-xar -o"
fi
IRIX*)
if test $ac_cv_prog_gxx = yes; then
:
else
echo "Using $CXX -xar -o for creating .a libraries"
CMAKE_AR="$CXX"
CMAKE_AR_ARGS="-ar -o"
fi
esac
AC_SUBST(CMAKE_AR)
AC_SUBST(CMAKE_AR_ARGS)