diff options
Diffstat (limited to 'nuttx/arch/sim')
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index ea92eb50c..7a5e1c7ff 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -60,9 +60,9 @@ SRCS = $(ASRCS) $(CSRCS) $(SPECSRCS) OBJS = $(AOBJS) $(COBJS) $(SPECOBJS) LDFLAGS = $(ARCHSCRIPT) -EXTRA_LIBS = -lc +STDLIBS = -lc ifeq ($(CONFIG_FS_FAT),y) -EXTRA_LIBS += -lz +STDLIBS += -lz endif LINKOBJS = up_head$(OBJEXT) @@ -89,7 +89,7 @@ libarch$(LIBEXT): $(OBJS) nuttx$(EXEEXT): $(LINKOBJS) @echo "LD: nuttx$(EXEEXT)" @$(CC) $(LDFLAGS) $(LDPATHES) -o $(TOPDIR)/$@ $(LINKOBJS) \ - -Wl,--start-group $(LDLIBS) -Wl,--end-group $(EXTRA_LIBS) + -Wl,--start-group $(LDLIBS) -Wl,--end-group $(STDLIBS) $(EXTRA_LIBS) @$(NM) $(TOPDIR)/$@ | \ grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ sort > $(TOPDIR)/System.map |