diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-07 14:38:05 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-04-07 14:38:05 +0000 |
commit | 5b46a6119490dcb5934fad2810474050ad59ba26 (patch) | |
tree | 8d88fa7f89c7f6992250db4358325b6b088f362c /lib/make | |
parent | ea5e7c7a2166e6193926b120a4a1b7a6102946de (diff) |
Added fix for L2_CACHE_SIZE so that if the value isn't found (in
/proc/cpuinfo) then 0 is used rather than leaving the value undefined.
(this is for linux on the Alpha chip, haven't yet seen where to get this
information from).
Gab and Kashif
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2695 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/known-architectures/linux | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 9b9aeb75..2ffd75b5 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -288,6 +288,9 @@ else L2_CACHE_SIZE=2*1024 else L2_CACHE_SIZE="`cat /proc/cpuinfo | perl -nae 'if(m:cache: && ! $dunnit) {print $F[3]; $dunnit=1}'`" + if test -z "$L2_CACHE_SIZE"; then + L2_CACHE_SIZE=0 + fi fi if test -n "$L2_CACHE_SIZE" ; then L2_CACHE_SIZE="$L2_CACHE_SIZE*1024" |