summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/build b/build
index 3810319..f9c9ca6 100755
--- a/build
+++ b/build
@@ -76,14 +76,17 @@ build: configure
install: build
# Install everything.
# * scriptdir contains target ldscripts.
- # * ldscripts should be independent of the host architecture and therefore
- # coinstallable with themselves across host architectures (I hope).
+ # * ldscripts are specific to both the host and target architectures.
+ # - If host != target, only target-specific paths are passed as
+ # arguments to SEARCH_DIR commands in ldscripts. (See the LIB_PATH
+ # stuff in the "configure" target above.)
# * All of these macro settings are effective thanks to
# `patches/01_pass-some-dirs-to-child-makes.patch`.
for target in $$(cat ../targets); do \
oh-autoinstall -B "build-$${target}" -d "binutils-$${target}.data" \
CFLAGS='$(CFLAGS)' \
- tooldir='/usr/tool' scriptdir="/usr/lib/$${target}" \
+ tooldir='/usr/tool' \
+ scriptdir="/usr/lib/$(OPK_HOST_ARCH)/$${target}" \
bfdlibdir="/usr/lib/$(OPK_HOST_ARCH)/$${target}" \
bfdincludedir="/usr/include/$(OPK_HOST_ARCH)/$${target}" || \
exit 1; \