The buildsystem should never act or try to act on /etc/ld.so.conf itself. Patch that out.