Merge pull request #1359 from dalcde/patch-2
Let pyconfig.h not define Py_ENABLE_SHARED
This commit is contained in:
commit
b152fd6317
2
build.rs
2
build.rs
|
@ -488,7 +488,7 @@ fn load_cross_compile_from_headers(
|
||||||
let interpreter_config = InterpreterConfig {
|
let interpreter_config = InterpreterConfig {
|
||||||
version: python_version,
|
version: python_version,
|
||||||
libdir: cross_compile_config.lib_dir.to_str().map(String::from),
|
libdir: cross_compile_config.lib_dir.to_str().map(String::from),
|
||||||
shared: config_data.get_bool("Py_ENABLE_SHARED")?,
|
shared: config_data.get_bool("Py_ENABLE_SHARED").unwrap_or(false),
|
||||||
ld_version: format!("{}.{}", major, minor),
|
ld_version: format!("{}.{}", major, minor),
|
||||||
base_prefix: "".to_string(),
|
base_prefix: "".to_string(),
|
||||||
executable: PathBuf::new(),
|
executable: PathBuf::new(),
|
||||||
|
|
Loading…
Reference in a new issue