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),)