Skip to content

Commit 173c2d9

Browse files
committed
lib/defines.mk: Don't always set -DDEBUG
The defines.mk file always set -DDEBUG, inherited from the xdp-tools build system. However, the configure script in this repository doesn't actually support the PRODUCTION variable, so change the define to only set -DDEBUG if a DEBUG variable is supplied to 'make'. This way DEBUG can be turned on with a command-line DEBUG=1 parameter to 'make', but will be unset otherwise. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
1 parent be8eb02 commit 173c2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/defines.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LIBBPF_DIR := $(LIB_DIR)/libbpf
2222

2323
DEFINES := -DBPF_DIR_MNT=\"$(BPF_DIR_MNT)\" -DBPF_OBJECT_PATH=\"$(BPF_OBJECT_DIR)\"
2424

25-
ifneq ($(PRODUCTION),1)
25+
ifeq ($(DEBUG),1)
2626
DEFINES += -DDEBUG
2727
endif
2828

0 commit comments

Comments
 (0)