| 1 |
# By default Rust will not export dynamic symbols from built executables. |
| 2 |
# Python symbols need to be exported from executables in order for that |
| 3 |
# executable to load Python extension modules, which are shared libraries. |
| 4 |
# Otherwise, the extension module / shared library is unable to resolve |
| 5 |
# Python symbols. This file contains target-specific configuration |
| 6 |
# overrides to export dynamic symbols from executables. |
| 7 |
# |
| 8 |
# Ideally we would achieve this functionality via the build.rs build |
| 9 |
# script. But custom compiler flags via build scripts apparently only |
| 10 |
# support limited options. |
| 11 |
|
| 12 |
[target.x86_64-unknown-linux-gnu] |
| 13 |
rustflags = ["-C", "link-args=-Wl,-export-dynamic"] |