From b58571165cded4daad6ccbc4f8055212e2b38a67 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 12 Nov 2012 20:08:43 -0500 Subject: ldscripts are host- and target-arch specific. --- 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; \ -- cgit v0.9.1