diff --git a/build.rs b/build.rs index 88d9e55..d4d9282 100644 --- a/build.rs +++ b/build.rs @@ -14,7 +14,6 @@ fn secp256k1_build() { .flag_if_supported("-Wno-unused-parameter") // patching out printf causes this warning //.define("SECP256K1_API", Some("")) .define("ENABLE_MODULE_ECDH", Some("1")) - .define("SECP256K1_STATIC", Some("1")) .define("ENABLE_MODULE_SCHNORRSIG", Some("1")) .define("ENABLE_MODULE_EXTRAKEYS", Some("1")); //.define("ENABLE_MODULE_ELLSWIFT", Some("1")) @@ -37,7 +36,7 @@ fn secp256k1_build() { base_config.compile("libsecp256k1.a"); - println!("cargo:rustc-link-lib=static=secp256k1"); + println!("cargo:rustc-link-lib=secp256k1"); } /// bolt11 deps with portability issues, exclude these on windows build @@ -79,7 +78,6 @@ fn main() { "nostrdb/deps/lmdb/mdb.c", "nostrdb/deps/lmdb/midl.c", ]) - .define("SECP256K1_STATIC", Some("1")) .include("nostrdb/deps/lmdb") .include("nostrdb/deps/flatcc/include") .include("nostrdb/deps/secp256k1/include")