1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-11-25 14:27:54 +00:00

Add CONFIG patch

This commit is contained in:
Sam A. 2023-03-24 20:13:53 +01:00
parent b0d7ac34d7
commit 8b34b64f16
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 16 additions and 1 deletions

View file

@ -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

12
config.patch Normal file
View file

@ -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 $$?)