[vlc-commits] tools: set CPUS correctly on Solaris
Sean McGovern
git at videolan.org
Sun Mar 23 01:03:45 CET 2014
vlc | branch: master | Sean McGovern <gseanmcg at gmail.com> | Tue Mar 11 15:12:35 2014 -0400| [d731e77454f5b5a699de8498fec63e62e4d72359] | committer: Rafaël Carré
tools: set CPUS correctly on Solaris
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d731e77454f5b5a699de8498fec63e62e4d72359
---
extras/tools/bootstrap | 3 +++
1 file changed, 3 insertions(+)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 0133d66..fcd3f10 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -90,6 +90,9 @@ case `uname` in
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
;;
+ SunOS)
+ CPUS=`/usr/bin/kstat -p :::state | grep 'on-line$' | wc -l | sed 's/ //g'`
+ ;;
*)
CPUS=1 # default
;;
More information about the vlc-commits
mailing list