From 29dae707fde49a2e38b22f9614febbe48171234c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 25 Oct 2016 22:42:04 -0400 Subject: [PATCH] Guard use of MacPorts GCC and -DCRYPTOPP_CLANG_INTEGRATED_ASSEMBLER --- GNUmakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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