diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-13 23:17:52 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-13 23:17:52 (EDT) |
commit | 8ee3bcc7ea1eea5aa97c0b30b8a8fb2ff9182bd7 (patch) | |
tree | 94e46f8efdecffd448f7811fa4f418eb48cd3ccb /build | |
parent | 3a5436c36f48b8780627a557d0647540b61f0a3a (diff) |
build: Set gcc_gxx_tool_include_dir
Diffstat (limited to 'build')
-rwxr-xr-x | build | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -63,6 +63,10 @@ bootstrap1_opts = \ --disable-libgomp \ --disable-libssp +dir_macros = \ + user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)" \ + gcc_gxx_tool_include_dir="/usr/include/$(target)/c++-$(base_version)" + extra_opts = native_target = bootstrap-lean cross_target = all-gcc @@ -128,7 +132,7 @@ $(build_targets): configure $(buildnative_targets): oh-autobuild -B "$(builddir)" -T $(native_target) -- \ -j $${JOBS:-$(jobs)} \ - user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)" + $(dir_macros) #if [ '$(OPK_BUILD_ARCH)' = '$(OPK_HOST_ARCH)' ]; then \ # cd "$(builddir)" && make -k check; \ #fi @@ -136,7 +140,7 @@ $(buildnative_targets): $(buildcross_targets): oh-autobuild -B "$(builddir)" -T $(cross_target) -- \ -j $${JOBS:-$(jobs)} \ - user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)" + $(dir_macros) build: $(build_targets) touch $@ @@ -158,7 +162,7 @@ $(installnative_targets): # is specified. # See also: <http://gcc.gnu.org/ml/gcc/2013-04/msg00171.html>. oh-autoinstall -B "$(builddir)" -d "$(destdir)" -T install -- \ - user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)" + $(dir_macros) # Change the target architecture prefix of files in /usr/bin. rm -f $(destdir)/usr/bin/$(target_gnu)-* for f in $(destdir)/usr/bin/*; do f="$${f##*/}"; \ @@ -255,7 +259,7 @@ $(installnative_targets): $(installcross_targets): oh-autoinstall -B "$(builddir)" -d "$(destdir)" -T install-gcc -- \ - user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)" + $(dir_macros) # Change the target architecture prefix of files in /usr/bin. rm -f $(destdir)/usr/bin/$(target_gnu)-* for f in $(destdir)/usr/bin/*; do f="$${f##*/}"; \ |