summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-21 17:41:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-21 17:41:11 (EDT)
commitf79bf9c6d257ca72d1066368e8d66cd3e58302dd (patch)
treeffbe786bf4e65d2bbb4f0a0fabfbaaead37b0d63
parent930cd90ac23dff5bdc624b1b2461ec8b2d172335 (diff)
build: Make symlinks to target-prefixed binaries.
-rwxr-xr-xbuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/build b/build
index 75d38e0..a78112f 100755
--- a/build
+++ b/build
@@ -80,10 +80,17 @@ install: build
# Change the target architecture prefix of files in /usr/bin.
rm -f dest/usr/bin/*-gcc-$(BASE_VERSION).*
for f in c++ g++ gcc gcc-ar gcc-nm gcc-ranlib; do \
+ rm -f dest/usr/bin/$${f}-$(BASE_VERSION); \
mv dest/usr/bin/*-$${f}-$(BASE_VERSION) \
dest/usr/bin/$(OPK_HOST_ARCH)-$$(printf '%s' \
dest/usr/bin/*-$${f}-$(BASE_VERSION) | \
sed "s/^.*-\($${f}\)/\1/"); \
+ ln -sf $(OPK_HOST_ARCH)-$$(printf '%s' \
+ dest/usr/bin/*-$${f}-$(BASE_VERSION) | \
+ sed "s/^.*-\($${f}\)/\1/") \
+ dest/usr/bin/$$(printf '%s' \
+ dest/usr/bin/*-$${f}-$(BASE_VERSION) | \
+ sed "s/^.*-\($${f}\)/\1/"); \
done
# Remove the internal libiberty.a.
rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a