Message ID | 20200206131901.535779-2-omosnace@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | userspace: Fix DEBUG=1 build | expand |
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
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@redhat.com> --- libsemanage/src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)