X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=blobdiff_plain;f=build-hc-pkg;fp=build-hc-pkg;h=27bf1fdd72d420a763af6375c0704badc56c53b0;hp=87e34ef9ef0b63e70f6ca1993ff8d25a14b0810a;hb=24ecd4063af8f36ea8c9cb45d1cae4406240be80;hpb=a3d4e6a453a70d4321fb469538a108c98f850ab1 diff --git a/build-hc-pkg b/build-hc-pkg index 87e34ef..27bf1fd 100755 --- a/build-hc-pkg +++ b/build-hc-pkg @@ -16,7 +16,10 @@ function detect_number_of_cpus () { case "$platform" in *-*-darwin) - ioreg -r -c IOCPU | fgrep -c IOCPUNumber + ioreg -r -c IOCPU | fgrep -c \"IOCPUNumber\" + ;; + *-*-netbsd*) + cat /proc/cpuinfo | grep -cE 'processor[[:space:]]*:' ;; *) echo "WARNING: I don't know how to detect the number of processors on this platform." >&2