Change the test for installing on 64 bit system in install-build-deps.sh

I'm thinking that checking if /sbin/init is 64 bit would be good?

R=mmoss@chromium.org, phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/52983005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232117 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
pschmidt@google.com 2013-10-31 15:15:49 +00:00
Родитель 163f551776
Коммит f4be43b64d
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -100,7 +100,7 @@ dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf
# 64-bit systems need a minimum set of 32-bit compat packages for the pre-built
# NaCl binaries. These are always needed, regardless of whether or not we want
# the full 32-bit "cross-compile" support (--lib32).
if [ "$(uname -m)" = "x86_64" ]; then
if file /sbin/init | grep -q 'ELF 64-bit'; then
dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6"
fi
@ -240,7 +240,7 @@ fi
# When cross building for arm on 64-bit systems the host binaries
# that are part of v8 need to be compiled with -m32 which means
# that basic multilib support is needed.
if [ "$(uname -m)" = "x86_64" ]; then
if file /sbin/init | grep -q 'ELF 64-bit'; then
arm_list="$arm_list g++-multilib"
fi
@ -362,7 +362,7 @@ else
fi
# Install 32bit backwards compatibility support for 64bit systems
if [ "$(uname -m)" = "x86_64" ]; then
if file /sbin/init | grep -q 'ELF 64-bit'; then
if test "$do_inst_lib32" != "1"
then
echo "NOTE: If you were expecting the option to install 32bit libs,"