summaryrefslogtreecommitdiff
path: root/apps/examples/posix_spawn/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/posix_spawn/Makefile')
-rw-r--r--apps/examples/posix_spawn/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/posix_spawn/Makefile b/apps/examples/posix_spawn/Makefile
index 1a88a19e4..8ff1fc50d 100644
--- a/apps/examples/posix_spawn/Makefile
+++ b/apps/examples/posix_spawn/Makefile
@@ -99,7 +99,7 @@ build:
@$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" build_lib
ifeq ($(CONFIG_BUILD_KERNEL),y)
-$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS)
+$(BIN_DIR)$(DELIM)$(PROGNAME): $(OBJS) $(MAINOBJ)
@echo "LD: $(PROGNAME)"
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(INSTALL_DIR)$(DELIM)$(PROGNAME) $(ARCHCRT0OBJ) $(LDLIBS)