From d06431bc50238d5f6102ee2737240c6555680f58 Mon Sep 17 00:00:00 2001 From: Nischal Sharma Date: Tue, 10 Sep 2024 03:44:13 +0530 Subject: [PATCH] fix for linux x86_64 final assembly --- build.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index baf94b3..9ecb248 100755 --- a/build.sh +++ b/build.sh @@ -362,9 +362,9 @@ build_constantine() { # Compile the native library if [[ "$OSTYPE" == "darwin"* ]]; then - gcc -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantinebindings.dylib" jna_ethereum_evm_precompiles.c -Iconstantine/include -Lconstantine/lib/ -lconstantine + gcc -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantinebindings.dylib" jna_ethereum_evm_precompiles.c -Iconstantine/include -I. -Lconstantine/lib/ -lconstantine elif [[ "$OSTYPE" == "linux-gnu"* ]]; then - gcc -fPIC -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantinebindings.so" jna_ethereum_evm_precompiles.c -Iconstantine/include -Lconstantine/lib/ -lconstantine + gcc -fPIC -shared -o "$SCRIPTDIR/constantine/build/${OSARCH}/lib/libconstantinebindings.so" jna_ethereum_evm_precompiles.c -Iconstantine/include -I. -Lconstantine/lib/ constantine/lib/libconstantine.so else echo "Unsupported OS/architecture: ${OSARCH}" exit 1 @@ -372,15 +372,15 @@ build_constantine() { } -build_blake2bf -build_secp256k1 -build_arithmetic -build_bls12_381 -build_ipa_multipoint -build_secp256r1 -build_gnark +#build_blake2bf +#build_secp256k1 +#build_arithmetic +#build_bls12_381 +#build_ipa_multipoint +#build_secp256r1 +#build_gnark build_constantine -build_jars +#build_jars exit