summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/build b/build
index 430de02..67eb4cb 100755
--- a/build
+++ b/build
@@ -92,6 +92,12 @@ install-libc: build-libc
>'dest/etc/ld.so.conf.d/$(OPK_HOST_ARCH)'
oh-autoinstall -s "$${PWD}/src/libc" -B libcbuild
rm -f dest/etc/ld.so.cache
+ # Make a /usr/lib/<host>/ld.so link for GCC.
+ # No ELF binary should reference this link in its INTERP field. This is
+ # strictly a development file that points to the system's dynamic
+ # linker.
+ ln -sf $$(printf '%s' dest/lib/$(OPK_HOST_ARCH)/ld*so.* | \
+ sed 's/dest//') /usr/lib/$(OPK_HOST_ARCH)/ld.so
rm -f dest/var/db/Makefile \
dest/sbin/sln \
dest/usr/bin/makedb \