From 878ccc2eba57c90fe25882b9edb4e84e6124ee55 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 27 Apr 2013 12:23:40 -0400 Subject: build: Make a /usr/lib//ld.so link for GCC. --- 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//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 \ -- cgit v0.9.1