From: Mike Pall Date: Sun, 10 Dec 2023 14:45:10 +0000 (+0100) Subject: Document workaround for multilib vs. cross-compiler conflict. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b38c736550004fba1b9712c1a5788b3eefa49be;p=thirdparty%2FLuaJIT.git Document workaround for multilib vs. cross-compiler conflict. Reported by igorpupkinable. #1126 --- diff --git a/doc/install.html b/doc/install.html index 21866315..7f2e40e4 100644 --- a/doc/install.html +++ b/doc/install.html @@ -240,7 +240,10 @@ for any supported target, as long as both architectures have the same pointer size. If you want to cross-compile to any 32 bit target on an x64 OS, you need to install the multilib development package (e.g. libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part -(HOST_CC="gcc -m32"). +(HOST_CC="gcc -m32"). On some distro versions, multilib conflicts +with cross-compilers. The workaround is to install the x86 cross-compiler +package gcc-i686-linux-gnu and use it to build the host part +(HOST_CC=i686-linux-gnu-gcc).

You need to specify TARGET_SYS whenever the host OS and the