diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2019-09-15 23:09:22 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-10-21 23:06:10 +0200 |
commit | 5915768cb037576c3bd68505ede94fdffffdb0e3 (patch) | |
tree | 6909970e5a523c813f86f268e262864bc72130a5 /src/codegen/mod.rs | |
parent | 3e1b714498ef18ff7a9ef4421ab2a3114030fa01 (diff) |
Allow static and dynamic linking
Currently bindgen always uses clang-sys with the "runtime" feature -
that is, load libclang at runtime with dlopen (or similar)
at runtime. This PR keeps this default, but also
- adds "static" to statically link libclang
- without either "runtime" or "static", link with the shared library
Many distributions don't ship with a static libclang, but linking with the dynamic
library will use normal ld.so mechanisms to define where the .so file should be found.
(Ditto for the Mac and Windows equivalents.)
Diffstat (limited to 'src/codegen/mod.rs')
0 files changed, 0 insertions, 0 deletions