From 18a05659f38dc268b732de73d36f3e98408a01d0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 4 Aug 2017 18:31:52 -0400 Subject: [PATCH] Switch from -O2 to -O3 in the makefile (Issue 454) Also see https://groups.google.com/d/msg/cryptopp-users/AEiGyjq15tw/GBAyDA6fBgAJ --- GNUmakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 31d26606c..0cf7d4ecc 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -81,12 +81,12 @@ HAS_NEWLIB := $(shell $(CXX) -x c++ $(CXXFLAGS) -dM -E adhoc.cpp.proto 2>&1 | $( # Base CXXFLAGS used if the user did not specify them ifeq ($(SUN_COMPILER),1) ifeq ($(SUNCC_512_OR_LATER),1) - CXXFLAGS ?= -DNDEBUG -g3 -xO2 + CXXFLAGS ?= -DNDEBUG -g3 -xO3 else - CXXFLAGS ?= -DNDEBUG -g -xO2 + CXXFLAGS ?= -DNDEBUG -g -xO3 endif else - CXXFLAGS ?= -DNDEBUG -g2 -O2 + CXXFLAGS ?= -DNDEBUG -g2 -O3 endif # Default prefix for make install