So I though perhaps I can use the i686-elf binutils that were build and clang++ which is supposed to be able to create a what I want. I might be both thick and confused but it seems that with the right command line options clang++ will compile for another platform - which makes me think that the cross compiling of clang++ itself is to host it on another machine rather than running on a host to generate for a specified target.
So I am using this command line
Code: Select all
CPP32FLAGS := -std=c++1y -Os -target i686-none-elf -ffreestanding -nostdlib -nostdinc -fno-builtin -fno-rtti -fno-exceptions -r -Wall
CPP32 := clang++
Thanks in advance