diff --git a/examples/elf/tests/errno/Makefile b/examples/elf/tests/errno/Makefile index 7d7146224..8bb6ba351 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index 4de917b9b..1766afdf4 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index 578e360a1..4f2989897 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index 7dab95ff4..7521ab850 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index a3fc20e9c..ce4114bd2 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index aeeab1d23..f7412508c 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index 17cc43c21..d9acd2c8a 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index 6652e77db..4245d0c42 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -57,12 +57,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index 1324f6635..f95898ce7 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -55,12 +55,8 @@ endif endif ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y) LDLIBS += -lproxies diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile index 43fd59b1b..f1f9c705b 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -44,7 +44,6 @@ else NUTTXLIB = "$(TOPDIR)$(DELIM)staging" endif -KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__} CMODULEFLAGS += $(KDEFINE) LDLIBPATH = diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile index 510965b02..f1987297b 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -61,12 +61,8 @@ LDLIBPATH += -L $(NUTTXLIB) endif ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif BIN = modprint diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index cdf286b92..5b36ab16b 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -61,12 +61,8 @@ LDLIBPATH += -L $(NUTTXLIB) endif ifeq ($(CONFIG_EXAMPLES_SOTEST_LIBC),y) -ifeq ($(CONFIG_BUILD_PROTECTED),y) -LDLIBS += -luc -else LDLIBS += -lc endif -endif BIN = sotest