summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-11 15:36:27 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-11 15:36:27 (EST)
commit1193cf44a39163adb0fbde69c242163a75e1db4c (patch)
tree2d710ff0363ac446bd35c1ca2c3ed36cd83d0f3c /build
parent92a8fa4fbe9c0f3f115b2a08fd0dd2094f3c1d65 (diff)
Slightly condense generation of ld configuration.
Diffstat (limited to 'build')
-rwxr-xr-xbuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/build b/build
index 3f2cf43..c0dccd4 100755
--- a/build
+++ b/build
@@ -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'