Skip to content

Commit

Permalink
Remove LDFLAGS from Kbuild and leave a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
milabs committed Jan 17, 2021
1 parent 513c0cc commit 4c7cf7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ obj-m += $(MODNAME).o
$(MODNAME)-y += main.o

ccflags-y += -Werror -fno-stack-protector -fomit-frame-pointer
ldflags-y += -T$(src)/khook/engine.lds
ldflags-y += -T$(src)/khook/engine.lds # use LDFLAGS for old kernels

LDFLAGS := $(ldflags-y) # legacy
KBUILD_CFLAGS := $(filter-out -pg,$(KBUILD_CFLAGS))
KBUILD_CFLAGS := $(filter-out -mfentry,$(KBUILD_CFLAGS))

0 comments on commit 4c7cf7a

Please sign in to comment.