diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-16 15:02:16 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-16 15:02:16 +0000 |
commit | c4987427684260ead76116830784d23195e4bda0 (patch) | |
tree | 46de016438b7b108b4adedbc77844975047ec032 /bin/mklib | |
parent | 3152b1586cfdb06df204c5291db7b0f3850d8cb9 (diff) |
if CXX or CC env vars aren't set, use g++, gcc by default (Linux)
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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} |