From c4987427684260ead76116830784d23195e4bda0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 16 Oct 2004 15:02:16 +0000 Subject: [PATCH] if CXX or CC env vars aren't set, use g++, gcc by default (Linux) --- bin/mklib | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/mklib b/bin/mklib index 59dd0096f4c..2f6beff7c86 100755 --- a/bin/mklib +++ b/bin/mklib @@ -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} -- 2.30.2