summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-27 14:30:49 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-27 14:30:49 (EDT)
commitcdefea7e38111bd61f5721eb3f5b6824f4be4f87 (patch)
tree1dbbe5243d54038c7d0fda11d2081dbb52e92eb1 /build
parentd89c3cab7255da434ed582bce822e45ae8cea5df (diff)
build: Also set INTERP with LDFLAGS at build time.
This is necessary for cross compilers, at least.
Diffstat (limited to 'build')
-rwxr-xr-xbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/build b/build
index 1d5efea..22e3b07 100755
--- a/build
+++ b/build
@@ -81,6 +81,7 @@ $(build_targets): configure
$(buildnative_targets):
libsubdir="/usr/lib/$(target)/gcc-$(base_version)" && \
oh-autobuild -B "$(builddir)" -T bootstrap-lean -- -j $${JOBS:-1} \
+ LDFLAGS="-Wl,--dynamic-linker=$(elf_interp)" \
libsubdir="$${libsubdir}" \
libexecsubdir="$${libsubdir}" \
libsubincludedir="$${libsubdir}/include" \
@@ -91,6 +92,7 @@ $(buildnative_targets):
$(buildcross_targets):
libsubdir="/usr/lib/$(target)/gcc-$(base_version)" && \
oh-autobuild -B "$(builddir)" -T all-gcc -- -j $${JOBS:-1} \
+ LDFLAGS="-Wl,--dynamic-linker=$(elf_interp)" \
libsubdir="$${libsubdir}" \
libexecsubdir="$${libsubdir}" \
libsubincludedir="$${libsubdir}/include" \