diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -77,6 +77,15 @@ install: build libsubincludedir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \ fincludedir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/finclude \ toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR= + # 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 \ + 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/"); \ + done + # Remove the internal libiberty.a. rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a # Move libstdc++.so link. rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libstdc++.so |