if CXX or CC env vars aren't set, use g++, gcc by default (Linux)

This commit is contained in:
Brian Paul 2004-10-16 15:02:16 +00:00
parent 3152b1586c
commit c498742768
1 changed files with 8 additions and 0 deletions

View File

@ -116,6 +116,14 @@ case $ARCH in
'Linux' | 'OpenBSD')
# GCC-based environment
# Set default compilers if env vars not set
if [ "x$CXX" = "x" ] ; then
CXX=g++
fi
if [ "x$CC" = "x" ] ; then
CC=gcc
fi
if [ $NOPREFIX = 1 ] ; then
# No "lib" or ".so" part
echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}