Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Fix static linking on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Oct 20, 2023
1 parent e344e38 commit 12086c6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
ifeq ($(shell uname), Darwin)
CGO_LDFLAGS := -framework Security
endif

.PHONY: build
build: build-tfhe-rs-capi
cd fhevm && go build .
cd fhevm && CGO_LDFLAGS='$(CGO_LDFLAGS)' go build .

.PHONY: test
test: build-tfhe-rs-capi
cd fhevm && go test -v .
cd fhevm && CGO_LDFLAGS='$(CGO_LDFLAGS)' go test -v .

.PHONY: build-tfhe-rs-capi
build-tfhe-rs-capi:
cd tfhe-rs && make build_c_api_experimental_deterministic_fft
cd tfhe-rs && make build_c_api_experimental_deterministic_fft \
&& cd target/release && rm -f *.dylib *.dll *.so

.PHONY: clean
clean:
Expand Down

0 comments on commit 12086c6

Please sign in to comment.