summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-02 11:48:13 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-02 11:48:13 (EDT)
commitc37170f9a0d8ae7fc8d15a2e27f74224aceee764 (patch)
treecd013a75700ff53f690a8ecabf8ea63acfe22686
parent5a519379cb2798310f20ebe4fc06c30cec114965 (diff)
build: Fix condition for native ar symbolic link.
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index bcdc56e..19d749f 100755
--- a/build
+++ b/build
@@ -113,7 +113,7 @@ 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 \
+ if [ "$${util##*/$${target}-}" = 'ar' ]; then \
dest='ar.binutils'; \
else \
dest="$${util##*/$${target}-}"; \