void-packages/srcpkgs/crypto++/patches/arm-native.patch
2017-08-14 17:35:32 +02:00

26 lines
868 B
Diff

--- GNUmakefile.orig
+++ GNUmakefile
@@ -125,23 +125,6 @@
endif
endif
-# Guard use of -march=native
-ifeq ($(GCC42_OR_LATER)$(IS_NETBSD),10)
- CXXFLAGS += -march=native
-else ifneq ($(CLANG_COMPILER)$(INTEL_COMPILER),00)
- CXXFLAGS += -march=native
-else
- # GCC 3.3 and "unknown option -march="
- # Ubuntu GCC 4.1 compiler crash with -march=native
- # NetBSD GCC 4.8 compiler and "bad value (native) for -march= switch"
- # Sun compiler is handled below
- ifeq ($(SUN_COMPILER)$(IS_X64),01)
- CXXFLAGS += -m64
- else ifeq ($(SUN_COMPILER)$(IS_X86),01)
- CXXFLAGS += -m32
- endif # X86/X32/X64
-endif
-
# Aligned access required for -O3 and above due to vectorization
UNALIGNED_ACCESS := $(shell $(EGREP) -c "^[[:space:]]*//[[:space:]]*\#[[:space:]]*define[[:space:]]*CRYPTOPP_NO_UNALIGNED_DATA_ACCESS" config.h)
ifneq ($(UNALIGNED_ACCESS),0)