From 5a519379cb2798310f20ebe4fc06c30cec114965 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 27 May 2013 13:58:38 -0400 Subject: Manage /usr/bin/ar with update-alternatives. --- (limited to 'build') diff --git a/build b/build index 1a3ad5e..bcdc56e 100755 --- a/build +++ b/build @@ -113,8 +113,13 @@ install: build for target in $$(cat ../targets); do \ if [ '$(OPK_HOST_ARCH)' = "$${target}" ]; then \ for util in "binutils-$${target}.data/usr/bin/$${target}-"*; do \ + if [ "$${util}" = 'ar' ]; then \ + dest='ar.binutils'; \ + else \ + dest="$${util##*/$${target}-}"; \ + fi; \ ln -sf "$${util##*/}" \ - "$${util%/*}/$${util##*/$${target}-}"; \ + "$${util%/*}/$${dest}"; \ done \ fi; \ done -- cgit v0.9.1