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
pull/339/head
Jeffrey Walton 2016-11-02 18:26:17 -04:00
parent d55d3d53d1
commit 456bd2b1b7
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 0 deletions

View File

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