]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils.sh: use arch-neutral path names 1035/head
authorKefu Chai <kchai@redhat.com>
Wed, 30 May 2018 10:40:24 +0000 (18:40 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 30 May 2018 10:40:24 +0000 (18:40 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index 5d9b362e394cfc8a92359e718dfcf266d9287007..b737306bc49ec680bcbd8f1e0fe84bb63d5f3d85 100644 (file)
@@ -510,8 +510,8 @@ update-alternatives \
 update-alternatives --auto gcc
 
 # cmake uses the latter by default
-ln -nsf /usr/bin/gcc /usr/bin/x86_64-linux-gnu-gcc
-ln -nsf /usr/bin/g++ /usr/bin/x86_64-linux-gnu-g++
+ln -nsf /usr/bin/gcc /usr/bin/\$(arch)-linux-gnu-gcc
+ln -nsf /usr/bin/g++ /usr/bin/\$(arch)-linux-gnu-g++
 EOF
 }