build: On Linux use processor pattern for /proc/cpuinfo

This fixes incorrect core counts on ARM. Verified behavior on
Linux PPC, ARM, x86. SPARC verification pending.
ck_pring
Samy Al Bahra 11 years ago
parent a7c235fc28
commit 2d3e754a5c

2
configure vendored

@ -264,7 +264,7 @@ case "$SYSTEM" in
SYSTEM=solaris SYSTEM=solaris
;; ;;
"Linux"|"uClinux") "Linux"|"uClinux")
DCORES=`egrep '(^CPU|processor.*:.*)' /proc/cpuinfo|wc -l` DCORES=`egrep '(^processor.*:.*)' /proc/cpuinfo|wc -l`
SYSTEM=linux SYSTEM=linux
;; ;;
"FreeBSD"|"GNU/kFreeBSD") "FreeBSD"|"GNU/kFreeBSD")

Loading…
Cancel
Save