summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-27 12:23:40 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-27 12:23:40 (EDT)
commit878ccc2eba57c90fe25882b9edb4e84e6124ee55 (patch)
tree1ffa7ac945803d102d0e4672d8e0e1b8047413bc
parent0245e9e24c77edad7746a920674c5188cc4ff30b (diff)
build: Make a /usr/lib/<host>/ld.so link for GCC.
-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 \