From 8c7d0614e5b13f1ca487a8bd1ab0568fcf3f0437 Mon Sep 17 00:00:00 2001 From: Chhatoi Pritam Baral Date: Wed, 28 Oct 2015 03:40:08 +0530 Subject: [PATCH] Respect pre-installed gcc package on Arch Linux --- bootstrap/_arch_common.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bootstrap/_arch_common.sh b/bootstrap/_arch_common.sh index 9e0d96e33..6895addf4 100755 --- a/bootstrap/_arch_common.sh +++ b/bootstrap/_arch_common.sh @@ -4,6 +4,15 @@ # - Manjaro 15.09 (x86_64) # - ArchLinux (x86_64) +# Both "gcc-multilib" and "gcc" packages provide gcc. If user already has +# "gcc-multilib" installed, let's stick to their choice +if pacman -Qc gcc-multilib &>/dev/null +then + GCC_PACKAGE="gcc-multilib"; +else + GCC_PACKAGE="gcc"; +fi + # "python-virtualenv" is Python3, but "python2-virtualenv" provides # only "virtualenv2" binary, not "virtualenv" necessary in # ./bootstrap/dev/_common_venv.sh @@ -11,7 +20,7 @@ pacman -S --needed \ git \ python2 \ python-virtualenv \ - gcc \ + "$GCC_PACKAGE" \ dialog \ augeas \ openssl \