Force use of portable blst in C (#337)

This commit is contained in:
Justin Traglia 2023-08-11 09:20:34 -05:00 committed by GitHub
parent b645bcc728
commit 74069dad68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ endif
# Settings for blst.
BLST_LIBRARY = ../lib/libblst.a
BLST_BUILDSCRIPT = ../blst/build.sh
BLST_BUILDSCRIPT_FLAGS = -D__BLST_PORTABLE__
# Libraries to build with.
LIBS = $(BLST_LIBRARY)
@ -54,7 +55,7 @@ $(BLST_BUILDSCRIPT):
$(BLST_LIBRARY): $(BLST_BUILDSCRIPT)
@cd $(dir $(BLST_BUILDSCRIPT)) && \
./$(notdir $(BLST_BUILDSCRIPT)) && \
./$(notdir $(BLST_BUILDSCRIPT)) $(BLST_BUILDSCRIPT_FLAGS) && \
cp $(notdir $(BLST_LIBRARY)) ../lib && \
cp bindings/*.h ../inc