summaryrefslogtreecommitdiff
path: root/apps/examples/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/elf/Makefile')
-rw-r--r--apps/examples/elf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/elf/Makefile b/apps/examples/elf/Makefile
index 24bd85921..fbdd4bf66 100644
--- a/apps/examples/elf/Makefile
+++ b/apps/examples/elf/Makefile
@@ -102,7 +102,7 @@ really_build: $(OBJS)
ifeq ($(CONFIG_BUILD_KERNEL),y)
$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ)
@echo "LD: $(PROGNAME)"
- $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(LDLIBS)
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(MAINOBJ) $(LDLIBS)
install: $(BIN_DIR)$(DELIM)$(PROGNAME)