[Android] compile.sh: unbork on Linux setups with sysctl
Edward Wang
git at videolan.org
Mon Apr 15 04:47:41 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Apr 14 22:42:39 2013 -0400| [139b8905819269580d0ce6a96422456aa46ff40a] | committer: Edward Wang
compile.sh: unbork on Linux setups with sysctl
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=139b8905819269580d0ce6a96422456aa46ff40a
---
compile.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compile.sh b/compile.sh
index 543d3e9..64028fa 100755
--- a/compile.sh
+++ b/compile.sh
@@ -139,11 +139,12 @@ EXTRA_CFLAGS="${EXTRA_CFLAGS} -O2"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++${CXXSTL}/include"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++${CXXSTL}/libs/${ANDROID_ABI}/include"
+UNAMES=$(uname -s)
MAKEFLAGS=
if which nproc >/dev/null
then
MAKEFLAGS=-j`nproc`
-elif which sysctl >/dev/null
+elif [ "$UNAMES" == "Darwin" ] && which sysctl >/dev/null
then
MAKEFLAGS=-j`sysctl -n machdep.cpu.thread_count`
fi
More information about the Android
mailing list