diff --git a/GNUmakefile b/GNUmakefile index 250e27a0..b58b4fb6 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -187,10 +187,10 @@ endif # Tell MacPorts GCC to use Clang integrated assembler # http://github.com/weidai11/cryptopp/issues/190 ifeq ($(GCC_COMPILER)$(MACPORTS_COMPILER),11) -ifneq ($(findstring -Wa,-q,$(CXXFLAGS)),-Wa,-q) +ifeq ($(findstring -Wa,-q,$(CXXFLAGS)),) CXXFLAGS += -Wa,-q endif -ifneq ($(findstring -Wa,-q,$(CXXFLAGS)),-DCRYPTOPP_CLANG_INTEGRATED_ASSEMBLER) +ifeq ($(findstring -DCRYPTOPP_CLANG_INTEGRATED_ASSEMBLER,$(CXXFLAGS)),) CXXFLAGS += -DCRYPTOPP_CLANG_INTEGRATED_ASSEMBLER=1 endif endif @@ -198,8 +198,10 @@ endif # GCC on Solaris needs -m64. Otherwise, i386 is default # http://github.com/weidai11/cryptopp/issues/230 ifeq ($(IS_SUN)$(GCC_COMPILER)$(IS_X64),111) +ifeq ($(findstring -m32,$(CXXFLAGS)),) CXXFLAGS += -m64 endif +endif # Allow use of "/" operator for GNU Assembler. # http://sourceware.org/bugzilla/show_bug.cgi?id=4572