summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-14 01:54:27 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-14 01:54:27 (EDT)
commit6f32709918fbd94c73df7191c77f2b754d162deb (patch)
tree17a6677c75c968297ea312fc878287b44e4ce8b6 /build
parent8d08bb771bdc5d634baa3175dacba67be75c4028 (diff)
build: Post-process arch-dependent C++ headers
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/build b/build
index fddd9b6..9a1c771 100755
--- a/build
+++ b/build
@@ -67,10 +67,11 @@ bootstrap1_opts = \
libdir = $(destdir)/usr/lib/$(OPK_HOST_ARCH)
gcclibdir = $(destdir)/usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version)
tgtlibdir = $(destdir)/usr/lib/$(OPK_HOST_ARCH)/$(target)/gcc-$(base_version)
+tgtincdir = /usr/include/$(target)/c++-$(base_version)
libsuffix = $$(g++ -print-multi-os-directory)
dir_macros = \
user_tooldir_prefix=$(tgtlibdir) \
- gcc_gxx_tool_include_dir="/usr/include/$(target)/c++-$(base_version)"
+ gcc_gxx_tool_include_dir=$(tgtincdir)
extra_opts =
native_target = bootstrap-lean
@@ -182,6 +183,9 @@ $(installnative_targets):
mv $(libdir)/gcc/$(target_gnu)/$(version)/* $(tgtlibdir)
mkdir -p $(gcclibdir)
mv $(libdir)/$(libsuffix)/* $(gcclibdir)
+ mkdir -p $(destdir)$(tgtincdir)
+ mv $(destdir)/usr/include/c++-$(base_version)/$(target_gnu)/* \
+ $(destdir)$(tgtincdir)
# Remove libquadmath files.
rm -f $(gcclibdir)/libquadmath.*
# Remove libtool archives and static libraries.