Skip to content

Commit

Permalink
mirror: Ignore $(CFLAGS), use $(EXTRA_CFLAGS) in feature detection
Browse files Browse the repository at this point in the history
Feature detection in the mirror repository should behave just like in
the kernel: $(CFLAGS) are ignored (overwritten), but $(EXTRA_CFLAGS) are
preserved. This is expecially important if users pass some
$(EXTRA_CFLAGS) to do a static build, for example.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
  • Loading branch information
qmonnet committed Feb 1, 2023
1 parent a560eff commit 45efd8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.feature
Expand Up @@ -3,6 +3,7 @@
pound := \#

CFLAGS_BACKUP := $(CFLAGS)
CFLAGS := $(EXTRA_CFLAGS)
ifneq ($(LLVM),)
CFLAGS += -Wno-unused-command-line-argument
endif
Expand Down

0 comments on commit 45efd8b

Please sign in to comment.