From 35448fd750c92d72b5f427073a1db543a68cb68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 1 Feb 2024 10:22:49 +0100 Subject: [PATCH] fix() remove dynamic linking --- fhevm/tfhe.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fhevm/tfhe.go b/fhevm/tfhe.go index 52e9d23..6e1afc5 100644 --- a/fhevm/tfhe.go +++ b/fhevm/tfhe.go @@ -19,12 +19,10 @@ package fhevm /* #cgo linux CFLAGS: -O3 -I../tfhe-rs/target/release #cgo linux CFLAGS: -O3 -I../tfhe-rs/target/release/deps -#cgo linux LDFLAGS: -L../tfhe-rs/target/release -ltfhe -lm -#cgo linux LDFLAGS: -L../tfhe-rs/target/release/deps -ltfhe_c_api_dynamic_buffer +#cgo linux LDFLAGS: -L../tfhe-rs/target/release -l:libtfhe.a -L../tfhe-rs/target/release/deps -l:libtfhe_c_api_dynamic_buffer.a -lm #cgo darwin CFLAGS: -O3 -I../tfhe-rs/target/release #cgo darwin CFLAGS: -O3 -I../tfhe-rs/target/release/deps -#cgo darwin LDFLAGS: -framework Security -L../tfhe-rs/target/release -ltfhe -lm -#cgo darwin LDFLAGS: -framework Security -L../tfhe-rs/target/release/deps -ltfhe_c_api_dynamic_buffer +#cgo darwin LDFLAGS: -framework Security -L../tfhe-rs/target/release -ltfhe -L../tfhe-rs/target/release/deps -ltfhe_c_api_dynamic_buffer -lm #include