diff options
Diffstat (limited to 'build')
-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 |