summaryrefslogtreecommitdiffstats
path: root/bin/mklib
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mklib')
-rwxr-xr-xbin/mklib8
1 files changed, 8 insertions, 0 deletions
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}