diff options
author | P. J. McDermott <pjm@nac.net> | 2013-05-27 13:58:38 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-05-27 13:58:38 (EDT) |
commit | 5a519379cb2798310f20ebe4fc06c30cec114965 (patch) | |
tree | a2c956e115a79f8711dba6fd8250e47d45410fca /build | |
parent | ac48e843249d8f3593476d703ac9d0eefecd5879 (diff) |
Manage /usr/bin/ar with update-alternatives.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |