From 5b46a6119490dcb5934fad2810474050ad59ba26 Mon Sep 17 00:00:00 2001 From: allen Date: Sun, 7 Apr 2002 14:38:05 +0000 Subject: 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 --- lib/make/known-architectures/linux | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3