From 8b34b64f1699616f3b25e1f59ba514041c8c6c68 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 24 Mar 2023 20:13:53 +0100 Subject: [PATCH] Add CONFIG patch --- Makefile | 5 ++++- config.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 config.patch 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 $$?)