Displaying 1 result from an estimated 1 matches for "din_llvm".
2011 Oct 24
0
[LLVMdev] How build a library with llvm-ld
...usr/local/lib64/
-L/usr/lib64 -ldruntime-ldc -llphobos2 -lm -ldl -lrt -soname=Dparser
*.bc
$ llc -relocation-model=pic libDparser.bcgcc -shared libDparser.s -o
libDparser.so
$ gcc -shared libDparser.s -o libDparser.so
it works
with gcc i can do this in one line:
$ gcc -Dlphobos2_EXPORTS -DDMDV2 -DIN_LLVM -D_DH -DOPAQUE_VTBLS -DPOSIX
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC
-shared build/*.o -o libDparser.so
So why use first method? they are not a better way fully llvm ?
kind regards