Closed mneumann closed 1 year ago
I was successful, passing -fuse-ld
and some missing libraries:
clang++14 -o build/savi-release -O3 -fuse-ld=lld -v \
--target=x86_64-unknown-dragonfly \
build/savi-release.o \
-L/usr/lib \
-L/usr/local/lib \
-L/usr/local/llvm14/lib \
-lm -lgc-threaded -levent -lpcre -lz -pthread \
-lLLVM-14 -lclang \
build/llvm_ext.bc \
build/llvm_ext_for_savi.bc \
`ls /usr/local/llvm14/lib/liblld*.a`
$ uname -a && ./build/savi-release --version
DragonFly s1.ntecs.de 6.2-RELEASE DragonFly v6.2.1.20.ge79614-RELEASE #15: Wed May 4 06:10:48 UTC 2022 root@s1.ntecs.de:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
savi version: unknown
llvm version: 14.0.6
I somehow need to integrate that into the Makefile
properly... and port over libsavi_runtime
:)
I struggle at the last link-step on DragonFly BSD:
When I run it, it compains about symbols not found:
It seems all
/usr/local/llvm14/lib/libclang*.a
files have C++ name mangling. @jemc Is there some magic that you do when building llvm-static?I get a step further with this:
using dynamic linking, but now it complains:
Am I using the wrong linker?