summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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