llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.35k stars 12.14k forks source link

libclang_rt support for FreeBSD #6494

Open pwo opened 14 years ago

pwo commented 14 years ago
Bugzilla Link 6122
Version trunk
OS FreeBSD
Attachments compiler_rt.diff, clang.diff, clang.diff
CC @emaste

Extended Description

Here are two initial patch for compiler_rt and clang to use it on FreeBSD. This was modeled after the Darwin support. Tested with a buildworld on FreeBSD.

Integration in FreeBSD sources will probably look different.

pwo commented 14 years ago

This needs additional work on the compiler-rt build front.

Now the patch ends up with:

llvm[2]: Linking Release Shared Library LTO.so
/usr/bin/ld: /usr/opt/llvm/lib/clang/1.1/lib/freebsd/libclang_rt.x86_64.a(powidf2.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/opt/llvm/lib/clang/1.1/lib/freebsd/libclang_rt.x86_64.a: could not read symbols: Bad value