Enable -Wa,--divide for GCC/GAS on Solaris (Binutil PR 4572)

pull/200/head
Jeffrey Walton 2016-06-15 09:55:10 -04:00
parent b1df5736a7
commit 8d940f1c3f
1 changed files with 7 additions and 6 deletions

View File

@ -166,12 +166,13 @@ endif
endif
endif
# Allow use of "/" operator for GNU Assembler
# ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
# ifeq ($(IS_GAS),1)
# CXXFLAGS += -Wa,--divide
# endif
# endif
# Allow use of "/" operator for GNU Assembler.
# http://sourceware.org/bugzilla/show_bug.cgi?id=4572
ifeq ($(findstring -DCRYPTOPP_DISABLE_ASM,$(CXXFLAGS)),)
ifeq ($(IS_SUN)$(GCC_COMPILER),11)
CXXFLAGS += -Wa,--divide
endif
endif
ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist
CXXFLAGS += -mbnu210