Do not override CFLAGS and LDFLAGS in libsemange Makefile under DEBUG=1, to make it possible to build the whole tree using the root Makefile with DEBUG=1. Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> --- libsemanage/src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsemanage/src/Makefile b/libsemanage/src/Makefile index 8a9570c7..f6780dc6 100644 --- a/libsemanage/src/Makefile +++ b/libsemanage/src/Makefile @@ -22,8 +22,8 @@ RUBYINSTALL ?= $(shell $(RUBY) -e 'puts RbConfig::CONFIG["vendorarchdir"]') DEFAULT_SEMANAGE_CONF_LOCATION=/etc/selinux/semanage.conf ifeq ($(DEBUG),1) - export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror - export LDFLAGS = -g + export CFLAGS ?= -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror + export LDFLAGS ?= -g endif LEX = flex -- 2.24.1