From 2ef04ff0a8e41f26452b10c1dcc637a8b88988cd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Aug 2018 16:24:58 -0600 Subject: [PATCH] apps/examples/sotest and modules: With recent changes, LDLIBS is initialized to bad value, at least in certain contexts. --- examples/module/drivers/chardev/Makefile | 3 +++ examples/sotest/lib/modprint/Makefile | 3 +++ examples/sotest/lib/sotest/Makefile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile index 89262fa71..07aebb1b6 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -48,6 +48,9 @@ endif KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__} CMODULEFLAGS += $(KDEFINE) +LDLIBPATH = +LDLIBS = + ifeq ($(CONFIG_EXAMPLES_MODULE_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),) diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile index cf2850ca1..8723b84d4 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -48,6 +48,9 @@ endif KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__} CMODULEFLAGS += $(KDEFINE) +LDLIBPATH = +LDLIBS = + ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),) diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index 2be8aad46..78180b7dd 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -48,6 +48,9 @@ endif KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__} CMODULEFLAGS += $(KDEFINE) +LDLIBPATH = +LDLIBS = + ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBGCC),y) LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}" ifneq ($(LIBGCC),)