diff options
Diffstat (limited to 'apps/examples/elf/tests/longjmp/Makefile')
-rw-r--r-- | apps/examples/elf/tests/longjmp/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/examples/elf/tests/longjmp/Makefile b/apps/examples/elf/tests/longjmp/Makefile index 802d84df1..9cc3a9922 100644 --- a/apps/examples/elf/tests/longjmp/Makefile +++ b/apps/examples/elf/tests/longjmp/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 = longjmp @@ -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)) |