summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-21 10:44:09 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-21 10:44:09 (EDT)
commit257a795316d818ba6bbe55042326e90e1b0bf231 (patch)
tree136af5e1fc3b2ccf99fb6b501a9f2485b36040ae /build
parent696c6d054ca1e9b61aad81952e4c21d9720c2b59 (diff)
Set libsubdir and libexecsubdir.
Diffstat (limited to 'build')
-rwxr-xr-xbuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/build b/build
index d4e3e05..c56bebe 100755
--- a/build
+++ b/build
@@ -52,6 +52,8 @@ build: configure
>src/$${f}; \
done
oh-autobuild -B gcc-build -T bootstrap-lean -- -j $${JOBS:-1} \
+ libsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \
+ libexecsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \
toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR=
touch $@
@@ -66,12 +68,10 @@ install: build
# See also: <http://gcc.gnu.org/ml/gcc/2013-04/msg00171.html>.
# TODO: Replace $(OPK_HOST_ARCH) with the target arch.
oh-autoinstall -B gcc-build -T install -- \
+ libsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \
+ libexecsubdir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION) \
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