Skip to content

Commit

Permalink
fix for linux x86_64 final assembly
Browse files Browse the repository at this point in the history
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
  • Loading branch information
NickSneo committed Sep 9, 2024
1 parent 4150dfc commit 0608b15
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,25 +362,25 @@ 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
fi
}


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

0 comments on commit 0608b15

Please sign in to comment.