From 2cc5084d7aacb02bb0444e7a618256f26666c706 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 15 Jun 2016 18:58:02 -0400 Subject: [PATCH] Enable -Wa,q for MacPort GCC/Clang integrated assembler --- GNUmakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index a657936c..28aea719 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -166,6 +166,13 @@ endif endif endif +# Tell MacPorts GCC to use Clang integrated assembler +ifeq ($(GCC_COMPILER)$(MACPORTS_COMPILER),11) +ifneq ($(findstring -Wa,q,$(CXXFLAGS)),-Wa,q) +CXXFLAGS += -Wa,q +endif +endif + # Allow use of "/" operator for GNU Assembler. # http://sourceware.org/bugzilla/show_bug.cgi?id=4572 ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)