diff options
author | P. 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) |
commit | f79bf9c6d257ca72d1066368e8d66cd3e58302dd (patch) | |
tree | ffbe786bf4e65d2bbb4f0a0fabfbaaead37b0d63 | |
parent | 930cd90ac23dff5bdc624b1b2461ec8b2d172335 (diff) |
build: Make symlinks to target-prefixed binaries.
-rwxr-xr-x | build | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |