From 44e01dd32b417ff0118cfa6183f31032966a93c1 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 2 Aug 2021 00:43:10 +0200 Subject: [PATCH] Makefile.am fix that actually does a proper substitution --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f481b8d3..1e027c6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -423,7 +423,7 @@ profile: $(MAKE) all AM_CPPFLAGS="-pg -O2 -DNDEBUG" debug: - $(MAKE) all AM_CPPFLAGS="-ggdb3 -Og" CFLAGS="`patsubst -O%,,$(CFLAGS)`" + $(MAKE) all AM_CPPFLAGS="-ggdb3 -Og" CFLAGS="`printf ' %s ' "$(CFLAGS)"|sed -E 's#[[:space:]]-O[^[:space:]]+[[:space:]]# #g'` -ggdb3 -Og" coverage: $(MAKE) all AM_CPPFLAGS="-fprofile-arcs -ftest-coverage" AM_LDFLAGS="-lgcov"