From dd86bc73fb894a259bf8eca38c074128ad2eb40f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 25 Oct 2014 16:57:16 +0000 Subject: tools: Fix compilation on x32 host Compiling the host tools on the new x32 architecture (which is an ILP32 ELF32 system on an amd64 CPU) fails for various reasons. gmp: pull same fix I applied to OpenADK, which was inspired by the fix in the Debian source package mtd-utils: write a workaround myself; only affects x32, but the use of llseek is dangerous according to the manpage, so the guard ifdef should probably go away findutils: pull fix straight from the Debian source packae Signed-off-by: Thorsten Glaser SVN-Revision: 43060 --- tools/gmp/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/gmp') diff --git a/tools/gmp/Makefile b/tools/gmp/Makefile index 463cbe9f5c..b1976d0cc3 100644 --- a/tools/gmp/Makefile +++ b/tools/gmp/Makefile @@ -27,4 +27,8 @@ HOST_CONFIGURE_ARGS += \ --enable-cxx \ --enable-mpbsd +ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32) +HOST_CONFIGURE_ARGS += ABI=x32 +endif + $(eval $(call HostBuild)) -- cgit v1.2.3