$NetBSD: patch-src_Makefile,v 1.3 2020/05/14 19:06:55 joerg Exp $ Do not force -O3 or -g. --- src/Makefile.orig 2020-01-16 09:52:20.000000000 +0000 +++ src/Makefile @@ -16,7 +16,6 @@ ifeq ($(debug),yes) suffix := .debug else ifeq ($(debug),no) - CXXFLAGS += -O3 suffix := .opt else $(error debug should be either yes or no) @@ -90,11 +89,11 @@ else LDFLAGS += -rdynamic endif -CXXFLAGS += -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address +CXXFLAGS += -pedantic -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-address compiler := $(shell $(CXX) --version) ifneq (,$(findstring clang,$(compiler))) - CXXFLAGS += -frelaxed-template-template-args +# CXXFLAGS += -frelaxed-template-template-args else ifneq (,$(findstring GCC,$(compiler))) CXXFLAGS += -Wno-init-list-lifetime endif