summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-10 10:15:59 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-10 10:15:59 (EST)
commit843beba83748d536519e8dd50bf0ec66b9e95beb (patch)
treee2e34d348f7c06cf74a4d9d55a71e9e38de6ec73 /build
parent04b66fd111ce2c58b13bb4ecc411a3d5f79633fe (diff)
Move BFD dev files into libbfd-dev-* data dir.
Diffstat (limited to 'build')
-rwxr-xr-xbuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/build b/build
index 6cb4c16..b95eaa6 100755
--- a/build
+++ b/build
@@ -93,12 +93,21 @@ install: build
>>"binutils-$${target}.data/etc/ld.so.conf.d/bfd_$(OPK_HOST_ARCH)_$${target}"; \
done
# Move documentation into binutils-doc data directory.
+ # Move BFD development files into libbfd-dev-* data directory.
mkdir -p 'binutils-doc.data/usr'
for target in $$(cat ../targets); do \
if [ ! -d 'binutils-doc.data/usr/share' ]; then \
mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \
exit 1; \
fi; \
+ mkdir -p "libbfd-dev-$${target}.data/usr/lib/$(OPK_HOST_ARCH)?$${target}" && \
+ mv "binutils-$${target}.data/usr/include" \
+ "libbfd-dev-$${target}.data/usr" && \
+ mv "binutils-$${target}.data/usr/lib/$(OPK_HOST_ARCH)/$${target}/libbfd.so" \
+ "libbfd-dev-$${target}.data/usr/lib/$(OPK_HOST_ARCH)?$${target}" && \
+ mv "binutils-$${target}.data/usr/lib/$(OPK_HOST_ARCH)/$${target}/libopcodes.so" \
+ "libbfd-dev-$${target}.data/usr/lib/$(OPK_HOST_ARCH)?$${target}" || \
+ exit 1; \
done
# Post-process and install everything.
for target in $$(cat ../targets); do \