From 380307fbfbf82428dbdc4b02e0a397a567376af2 Mon Sep 17 00:00:00 2001 From: Nischal Sharma Date: Thu, 15 Aug 2024 06:16:10 +0530 Subject: [PATCH] use gcc instead of clang Signed-off-by: Nischal Sharma --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1f9bc12e..66457dfa 100755 --- a/build.sh +++ b/build.sh @@ -352,7 +352,7 @@ build_constantine() { clang -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/darwin" -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantineeip196.jnilib" ethereum_evm_precompiles.c -Iconstantine/include -I. -Lconstantine/lib -lconstantine elif [[ "$OSTYPE" == "linux-gnu"* ]]; then cp "$SCRIPTDIR/constantine/constantine/lib/libconstantine.so" "$SCRIPTDIR/constantine/build/${OSARCH}/lib/" - clang -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -fPIC -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantineeip196.so" ethereum_evm_precompiles.c -Iconstantine/include -I. -Lconstantine/lib -lconstantine + gcc -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -fPIC -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantineeip196.so" ethereum_evm_precompiles.c -Iconstantine/include -I. -Lconstantine/lib -lconstantine else echo "Unsupported OS/architecture: ${OSARCH}" exit 1