From 456bd2b1b7ea3dc9e840f1392374aeb489aee3f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 2 Nov 2016 18:26:17 -0400 Subject: [PATCH] Add architecture option delimiters so distros can easily remove it The sed command to delete the lines are: sed '/# BEGIN MARCH_CXXFLAGS/,/# END MARCH_CXXFLAGS/d' GNUmakefile --- GNUmakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 92676802..cfb6f59e 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -127,6 +127,7 @@ ifeq ($(IS_X86)$(IS_X32)$(IS_CYGWIN)$(IS_MINGW)$(SUN_COMPILER),00000) endif endif +# BEGIN MARCH_CXXFLAGS # Guard use of -march=native (or -m{32|64} on some platforms) # Don't add anything if -march=XXX or -mtune=XXX is specified ifeq ($(findstring -march,$(CXXFLAGS)),) @@ -148,6 +149,7 @@ ifeq ($(findstring -mtune,$(CXXFLAGS)),) endif endif # -mtune endif # -march +# END MARCH_CXXFLAGS # 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)