Skip to content

Commit

Permalink
fix: detect gmp for Go bindings test
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Sep 20, 2024
1 parent 738d187 commit 945ec8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-binds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@ jobs:
- name: Build Go bindings
run: |
cd go-bindings
export gmp_prefix=`$BREW --prefix gmp 2>/dev/null`
export GMP_CXXFLAGS="-I$gmp_prefix/include"
export GMP_LDFLAGS="-L$gmp_prefix/lib"
make
6 changes: 4 additions & 2 deletions go-bindings/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ CGO_LDFLAGS ?= "\
-L$(CURR_DIR)../build/depends/mimalloc \
-L$(CURR_DIR)../build/depends/relic/lib \
-L$(CURR_DIR)../build/src \
-ldashbls -lrelic_s -lmimalloc-secure -lgmp"
-ldashbls -lrelic_s -lmimalloc-secure -lgmp" \
$(GMP_LDFLAGS)

CGO_CXXFLAGS ?= "\
-I$(CURR_DIR)../build/depends/relic/include \
-I$(CURR_DIR)../depends/mimalloc/include \
-I$(CURR_DIR)../depends/relic/include \
-I$(CURR_DIR)../include"
-I$(CURR_DIR)../include" \
$(GMP_CXXFLAGS)

prepare:
@mkdir -p ../build/src/dashbls
Expand Down

0 comments on commit 945ec8c

Please sign in to comment.