Changeset 43060


Ignore:
Timestamp:
2014-10-25T18:57:16+02:00 (3 years ago)
Author:
nbd
Message:

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 <tg@…>

Location:
trunk/tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/gmp/Makefile

    r38487 r43060  
    2828        --enable-mpbsd 
    2929 
     30ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32) 
     31HOST_CONFIGURE_ARGS += ABI=x32 
     32endif 
     33 
    3034$(eval $(call HostBuild)) 
  • trunk/tools/mtd-utils/patches/110-portability.patch

    r30769 r43060  
    5151--- a/mkfs.ubifs/mkfs.ubifs.h 
    5252+++ b/mkfs.ubifs/mkfs.ubifs.h 
    53 @@ -34,7 +34,14 @@ 
     53@@ -34,7 +34,17 @@ 
    5454 #include <endian.h> 
    5555 #include <byteswap.h> 
     
    5757+#ifdef __linux__ 
    5858 #include <linux/fs.h> 
     59+# if defined(__x86_64__) && defined(__ILP32__) 
     60+#  define llseek lseek64 
     61+# endif 
    5962+#else 
    6063+# ifndef O_LARGEFILE 
Note: See TracChangeset for help on using the changeset viewer.