From 294d526ed22c1aafa8b419f51632f31a673657aa Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 5 Sep 2014 13:59:20 -0600 Subject: Provide library names and paths in apps/import/Make.defs --- apps/examples/elf/tests/errno/Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'apps/examples/elf/tests/errno/Makefile') 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)) -- cgit v1.2.3