projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3152b15
)
if CXX or CC env vars aren't set, use g++, gcc by default (Linux)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 16 Oct 2004 15:02:16 +0000
(15:02 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 16 Oct 2004 15:02:16 +0000
(15:02 +0000)
bin/mklib
patch
|
blob
|
history
diff --git
a/bin/mklib
b/bin/mklib
index 59dd0096f4c90317aa47f773d9cf4f2f1e61e154..2f6beff7c86543266a53b4f4b03001a786cd657c 100755
(executable)
--- 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}