cross compiling os x -> linux

yawniek via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Mar 29 03:59:41 PDT 2016


is it possible to cross compile linux binaries from os x?

or in other words, is there a tutorial on how to build such a 
toolchain?

what i tried:
ldc2 -of test -mtriple=i686-unknown-linux-gnu 
-relocation-model=pic test.d
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
Error: /usr/bin/gcc failed with status: 1

so i guess i need a directory with all my linux libraries and the 
correct parameters?!



More information about the digitalmars-d-ldc mailing list