diff options
-rwxr-xr-x | build | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -100,11 +100,12 @@ install: build done # Write GNU ld configuration to point to BFD libraries. for target in $$(cat ../targets); do \ - mkdir -p "binutils-$${target}.data/etc/ld.so.conf.d" && \ - echo '# GNU BFD libraries' \ - >"binutils-$${target}.data/etc/ld.so.conf.d/bfd_$(OPK_HOST_ARCH)_$${target}" && \ - echo "/usr/lib/$(OPK_HOST_ARCH)/$${target}" \ - >>"binutils-$${target}.data/etc/ld.so.conf.d/bfd_$(OPK_HOST_ARCH)_$${target}"; \ + ld_so_conf_d="binutils-$${target}.data/etc/ld.so.conf.d" && \ + ld_so_conf="$${ld_so_conf_d}/bfd_$(OPK_HOST_ARCH)_$${target}" && \ + mkdir -p "$${ld_so_conf_d}" && \ + printf '# GNU BFD libraries\n/usr/lib/%s/%s\n' \ + '$(OPK_HOST_ARCH)' "$${target}" \ + >"$${ld_so_conf}"; \ done # Move documentation into binutils-doc data directory. mkdir -p 'binutils-doc.data/usr' |