diff options
author | P. 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) |
commit | 878ccc2eba57c90fe25882b9edb4e84e6124ee55 (patch) | |
tree | 1ffa7ac945803d102d0e4672d8e0e1b8047413bc /build | |
parent | 0245e9e24c77edad7746a920674c5188cc4ff30b (diff) |
build: Make a /usr/lib/<host>/ld.so link for GCC.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 \ |