Commit 2da4847
authored
ensures static linking with llvm >= 4.0 (#889)
it turned out that after `llvm-4.0` a default linking mode is `shared`,
and it's not what we want. e.g. debian package will be broken, as `bap`
will be depend from `LLVM.so`.
our previous request for libraries now returns an extremly short list:
```
ubuntu@ubuntu-xenial:~$ llvm-config-4.0 --libs
-lLLVM-4.0
```
which is just shared library.
So what we can do, is to use a new flag for llvm-config:
```
ubuntu@ubuntu-xenial:~$ llvm-config-4.0 --link-static --libs
-lLLVMLTO -lLLVMPasses -lLLVMObjCARCOpts -lLLVMMIRParser ...
```
Here it is!1 parent b1feeee commit 2da4847
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | | - | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments