summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-21 06:11:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-21 06:11:11 (EDT)
commit1d2c47ad6ccdcaec6298c38520f7c18d3a7b2497 (patch)
tree305c000763efa3e10b887a42be2541ba45280ad0 /build
parent6e77124fda10bab838c13b0ee174b3721cda75e7 (diff)
build: Postprocess libsubdir.
This probably has to be set at build time.
Diffstat (limited to 'build')
-rwxr-xr-xbuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/build b/build
index 5831920..0c85b65 100755
--- a/build
+++ b/build
@@ -66,6 +66,11 @@ install: build
# TODO: Replace $(OPK_HOST_ARCH) with the target arch.
oh-autoinstall -B gcc-build -T install -- \
toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR=
+ rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/gcc/*/*/ \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
+ rmdir dest/usr/lib/$(OPK_HOST_ARCH)/gcc/*/
+ rmdir dest/usr/lib/$(OPK_HOST_ARCH)/gcc/
# POSIX.1-2008:
# If the pathname does not begin with a '/' it shall be treated as relative to