[vlc-commits] extras/tools: fix compilation on multiple cores on Darwin

Felix Paul Kühne git at videolan.org
Fri Feb 19 16:13:09 CET 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Feb 17 16:14:14 2016 +0100| [1f4001b63610fe902001dab31a30427ef3f6ff52] | committer: Felix Paul Kühne

extras/tools: fix compilation on multiple cores on Darwin

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f4001b63610fe902001dab31a30427ef3f6ff52
---

 extras/tools/bootstrap |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 75d093e..1351475 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -94,7 +94,7 @@ case `uname` in
         CPUS=`grep -c ^processor /proc/cpuinfo`
      ;;
     Darwin)
-        CPUS=`sysctl hw.ncpu|cut -d: -f2`
+        CPUS=`sysctl hw.ncpu|cut -d" " -f2`
         gcc-4.2 --version >/dev/null 2>&1 && CC=CC=gcc-4.2
         g++-4.2 --version >/dev/null 2>&1 && CXX=CXX=g++-4.2
     ;;



More information about the vlc-commits mailing list