Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit f7f8551

Browse files
committed
kernel-cflags-finder: Fix build on 5.2 (fixes #124)
torvalds/linux@cdd750bf gets rid of __c_flags, so just use _c_flags if __c_flags is unset.
1 parent 521e30c commit f7f8551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel-cflags-finder/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(if $(filter-out -I/% -I../%,$(1)),$(patsubst ./%,$(CURDIR)/%,$(patsubst -I%,-I
2121
our_flags = $(foreach o,$($(1)),$(call our_addtree,$(o)))
2222

2323
$(M)/dummy.c:
24-
@echo $(NOSTDINC_FLAGS) $(call our_flags,LINUXINCLUDE) $(__c_flags) $(modkern_cflags)
24+
@echo $(NOSTDINC_FLAGS) $(call our_flags,LINUXINCLUDE) $(or $(__c_flags),$(_c_flags)) $(modkern_cflags)
2525
@touch $@
2626

2727
.PHONY: $(M)/dummy.c

0 commit comments

Comments
 (0)