Closed NanXiao closed 7 years ago
I wanted bpftrace to be statically linked by default to make it easier to deploy to other machines (just have to copy the single executable), but I've added in an option to support dynamic linking for situations like this where static linking isn't possible. The CMake command now becomes:
cmake -DDYNAMIC_LINKING:BOOL=ON -DCMAKE_BUILD_TYPE=Release ../
Oh forgot to say that there also seem to be other problems running bpftrace on Arch Linux as it uses LLVM 4.0 (issue #4), so unfortunately it probably still won't work at the moment :(
Is there any special meaning for following line in src/CMakeLists.txt:
Arch Linux
seems don't provide static library forncurses
, and this link option will cause link error. Plz refer this discussion, thanks very much in advance!