Browse Source

AVX disabled for debuild by patch

pull/742/head
R4SAS 8 years ago
parent
commit
f69884d573
  1. 9
      Makefile
  2. 2
      Makefile.linux
  3. 16
      debian/patches/01-tune-build-opts.patch

9
Makefile

@ -9,10 +9,11 @@ DEPS := obj/make.dep @@ -9,10 +9,11 @@ DEPS := obj/make.dep
include filelist.mk
USE_AESNI := yes
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
USE_AESNI := yes
USE_AVX := yes
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
ifeq ($(WEBSOCKETS),1)
NEEDED_CXXFLAGS += -DWITH_EVENTS

2
Makefile.linux

@ -65,7 +65,9 @@ endif @@ -65,7 +65,9 @@ endif
endif
endif
ifeq ($(USE_AVX),yes)
#check if AVX supported by CPU
ifneq ($(shell $(GREP) -c avx /proc/cpuinfo),0)
CPU_FLAGS += -mavx
endif
endif

16
debian/patches/01-tune-build-opts.patch vendored

@ -1,16 +1,18 @@ @@ -1,16 +1,18 @@
diff --git a/Makefile b/Makefile
index b6fc795..abc3ace 100644
index bdadfe0..2f71eec 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,10 @@ DEPS := obj/make.dep
include filelist.mk
-USE_AESNI := yes
+USE_AESNI := no
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
-USE_AESNI := yes
+USE_AESNI := no
-USE_AVX := yes
+USE_AVX := no
USE_STATIC := no
USE_MESHNET := no
USE_UPNP := no
ifeq ($(WEBSOCKETS),1)
NEEDED_CXXFLAGS += -DWITH_EVENTS

Loading…
Cancel
Save