diff --git a/Makefile b/Makefile index 744d2e1..97cc248 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ default: all -deps: +patch: + -git -C src/MP_SPDZ apply ../../config.patch + +deps: patch sudo apt install automake build-essential clang cmake git libntl-dev \ libsodium-dev libssl-dev libtool m4 python3 texinfo yasm make -C src/MP_SPDZ -j$$(nproc) boost diff --git a/config.patch b/config.patch new file mode 100644 index 0000000..3641eb4 --- /dev/null +++ b/config.patch @@ -0,0 +1,12 @@ +diff --git a/CONFIG b/CONFIG +index 6d5f0f17..217471f7 100644 +--- a/CONFIG ++++ b/CONFIG +@@ -28,7 +28,6 @@ USE_GF2N_LONG = 1 + # ADX is used to optimize big integer additions + # delete the second line to compile for a platform that supports everything + ARCH = -mtune=native -msse4.1 -msse4.2 -maes -mpclmul -mavx -mavx2 -mbmi2 -madx +-ARCH = -march=native + + MACHINE := $(shell uname -m) + ARM := $(shell uname -m | grep x86; echo $$?)