7.13. Bin86-0.16.17

The Bin86 package contains an assembler and linker to produce 16 or 32-bit 8086 machine code.

7.13.1. Installation of Bin86

We are building bin86 so that we can compile lilo. Both as86 and ld86 need to run on the host system to assemble x86_64 code. We cannot compile the whole package like this, but fortunately these two programs are the only parts we require.

This patch updates bin86 to compile on x86_64:

patch -Np1 -i ../bin86-0.16.17-x86_64-1.patch

The Bin86 package does not contain a configure script. Natively compile only the necessary parts with:

make CC=gcc -C as as86
make CC=gcc -C ld ld86

Install the assembler and linker where they will be on the PATH when we build lilo, using prefixes to show that their output is not for a native system.

install -v -m 755 -s as/as86 /cross-tools/bin/${LFS_TARGET}-as86
install -v -m 755 -s ld/ld86 /cross-tools/bin/${LFS_TARGET}-ld86

Details on this package are located in Section 10.54.2, “Contents of Bin86.”