void-packages/srcpkgs/crypto++/patches/arm-native.patch

34 lines
1.1 KiB
Diff

--- GNUmakefile.orig 2016-03-20 22:08:25.169365978 -0600
+++ GNUmakefile 2016-03-20 22:35:13.653257163 -0600
@@ -75,21 +75,6 @@
endif
endif
-# Guard use of -march=native
-ifeq ($(GCC_COMPILER),0)
- CXXFLAGS += -march=native
-else ifneq ($(GCC42_OR_LATER),0)
- CXXFLAGS += -march=native
-else
- # GCC 3.3 and "unknown option -march="
- # GCC 4.1 compiler crash with -march=native.
- ifneq ($(IS_X86_64),0)
- CXXFLAGS += -m64
- else
- CXXFLAGS += -m32
- endif # X86/X32/X64
-endif
-
# Aligned access required at -O3 for GCC due to vectorization (circa 08/2008). Expect other compilers to do the same.
UNALIGNED_ACCESS := $(shell $(EGREP) -c "^[[:space:]]*//[[:space:]]*\#[[:space:]]*define[[:space:]]*CRYPTOPP_NO_UNALIGNED_DATA_ACCESS" config.h)
ifeq ($(findstring -O3,$(CXXFLAGS)),-O3)
@@ -175,7 +160,7 @@
endif
ifneq ($(SUN_COMPILER),0) # override flags for CC Sun C++ compiler
-CXXFLAGS ?= -DNDEBUG -O -g0 -native -template=no%extdef $(M32OR64)
+CXXFLAGS ?= -DNDEBUG -O -g0 -template=no%extdef $(M32OR64)
LDFLAGS =
AR = $(CXX)
ARFLAGS = -xar -o