From de361961845557318db873c1e522dc96aa9d9b4d Mon Sep 17 00:00:00 2001 From: Ramana Kumar Date: Tue, 29 Nov 2022 21:19:03 +0000 Subject: [PATCH] Do not mess with java bindings CC_FLAGS --- bindings/java/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/java/Makefile b/bindings/java/Makefile index d375807..2a8833d 100644 --- a/bindings/java/Makefile +++ b/bindings/java/Makefile @@ -4,7 +4,7 @@ LIBRARY_FOLDER=src/main/resources/ethereum/ckzg4844/lib FIELD_ELEMENTS_PER_BLOB ?= 4096 -CC_FLAGS = -DFIELD_ELEMENTS_PER_BLOB=$(FIELD_ELEMENTS_PER_BLOB) +CC_FLAGS= ifeq ($(OS),Windows_NT) CLANG_EXECUTABLE=clang @@ -42,7 +42,7 @@ all: build test build: mkdir -p ${LIBRARY_FOLDER}/${OS_ARCH} - ${CLANG_EXECUTABLE} ${CC_FLAGS} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -o ${LIBRARY_FOLDER}/${OS_ARCH}/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a + ${CLANG_EXECUTABLE} ${CC_FLAGS} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -DFIELD_ELEMENTS_PER_BLOB=${FIELD_ELEMENTS_PER_BLOB} -o ${LIBRARY_FOLDER}/${OS_ARCH}/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a test: ${GRADLE_COMMAND} clean test