From 4ed36823a18b210205bd67bd4ccace9fa5494d07 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 28 Nov 2024 10:07:00 -0800 Subject: [PATCH] wip: remove static to see what breaks Signed-off-by: William Casarin --- build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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")