summaryrefslogtreecommitdiff
path: root/apps/examples/elf/tests/errno/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/elf/tests/errno/Makefile')
-rw-r--r--apps/examples/elf/tests/errno/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/examples/elf/tests/errno/Makefile b/apps/examples/elf/tests/errno/Makefile
index d0f6f8256..b9029e163 100644
--- a/apps/examples/elf/tests/errno/Makefile
+++ b/apps/examples/elf/tests/errno/Makefile
@@ -41,28 +41,26 @@ else
NUTTXLIB = "$(TOPDIR)$(DELIM)lib"
endif
-LIBPATH =
ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y)
LDELFFLAGS += -Bstatic
-LIBPATH += -L $(NUTTXLIB)
+LDLIBPATH += -L $(NUTTXLIB)
else
ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y)
LDELFFLAGS += -Bstatic
-LIBPATH += -L $(NUTTXLIB)
+LDLIBPATH += -L $(NUTTXLIB)
endif
endif
-LIBS =
ifeq ($(CONFIG_EXAMPLES_ELF_LIBC),y)
ifeq ($(CONFIG_BUILD_PROTECTED),y)
-LIBS += -luc
+LDLIBS += -luc
else
-LIBS += -lc
+LDLIBS += -lc
endif
endif
ifeq ($(CONFIG_EXAMPLES_ELF_SYSCALL),y)
-LIBS += -lproxies
+LDLIBS += -lproxies
endif
BIN = errno
@@ -78,7 +76,7 @@ $(OBJS): %.o: %.c
$(BIN): $(OBJS)
@echo "LD: $<"
- $(Q) $(LD) $(LDELFFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS)
clean:
$(call DELFILE, $(BIN))