summaryrefslogtreecommitdiff
path: root/lib/make
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-07-01 14:28:41 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-07-01 14:28:41 +0000
commitf5f9488439bf594d8ac75116552d12c85e12c8d1 (patch)
treede8b38f94a6959b72f110f50a4a8870db8a36839 /lib/make
parent06f1b4da3e5d2e16d17c7c18ee6ac06923505242 (diff)
Take the value of `basename $CC` when checking for a specific C compiler.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2920 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r--lib/make/known-architectures/linux4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux
index 00a0277d..30421d5a 100644
--- a/lib/make/known-architectures/linux
+++ b/lib/make/known-architectures/linux
@@ -226,7 +226,7 @@ else
# Set the appropriate dependency, warning, and debugging flags
# Note that the defaults settings are for gcc/g++ and they are set by configure
- case "$CC" in
+ case `basename $CC` in
[ei]cc)
if test "$OPTIMISE" = "no"; then
: ${CFLAGS='-O0 -restrict'}
@@ -248,7 +248,7 @@ else
;;
esac
- case "$CXX" in
+ case `basename $CXX` in
[ei]cc | ecpc)
if test "$OPTIMISE" = "no"; then
: ${CXXFLAGS='-restrict -O0'}