LDFLAGS became KBUILD_LDFLAGS. Set/extend them both.

Signed-off-by: Jan Kiszka <[email protected]>
---
 inmates/Makefile | 3 +++
 tools/Makefile   | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/inmates/Makefile b/inmates/Makefile
index 24e1e16e..d9fa9e57 100644
--- a/inmates/Makefile
+++ b/inmates/Makefile
@@ -36,7 +36,10 @@ KBUILD_CFLAGS += -include $(INC_CONFIG_H)
 endif
 
 OBJCOPYFLAGS := -O binary
+# prior to 4.19
 LDFLAGS += --gc-sections -T
+# since 4.19
+KBUILD_LDFLAGS += --gc-sections -T
 
 subdir-y := lib/$(SRCARCH) demos/$(SRCARCH) tests/$(SRCARCH) tools/$(SRCARCH)
 
diff --git a/tools/Makefile b/tools/Makefile
index 4847b811..08fd361c 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -22,7 +22,10 @@ KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \
        -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \
        -D__LINUX_COMPILER_TYPES_H \
        -DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS)
+# prior to 4.19
 LDFLAGS :=
+# since 4.19
+KBUILD_LDFLAGS :=
 
 # force no-pie for distro compilers that enable pie by default
 KBUILD_CFLAGS += $(call cc-option, -fno-pie)
-- 
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to