Commit 74609b66 authored by Keith Packard's avatar Keith Packard

Add i386 cross compile target

Build 32-bit x86 binaries for testing with 32-bit 'long'.
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 8bd53b47
[properties]
c_args = ['-m32']
as_args = ['-32']
c_link_args = ['-m32']
[binaries]
c = 'gcc'
ar = 'ar'
as = 'as'
[host_machine]
system='linux'
cpu_family='x86'
cpu='i686'
endian='little'
#!/bin/sh
DIR=`dirname $0`
ARCH=i386-linux-gnu
meson $DIR \
-Dnewlib-tinystdio=true \
-Dnewlib-supplied-syscalls=false \
-Dnewlib-reentrant-small=true\
-Dnewlib-wide-orient=false\
-Dnewlib-nano-malloc=true\
-Dlite-exit=true\
-Dnewlib-global-atexit=true\
-Dincludedir=lib/newlib-nano/include \
-Dlibdir=lib/newlib-nano/lib \
-Dtests=true \
--cross-file $DIR/cross-$ARCH.txt \
--buildtype debug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment