diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 42c5d50f2bcc..9cbf4630ddfe 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 OBJECT_FILES_NON_STANDARD := y +CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO) hostprogs-y := modpost mk_elfconfig always := $(hostprogs-y) empty.o