Change --start-group and '--end-group' as args.
This commit is contained in:
parent
7262af219f
commit
38b4933e88
@ -109,6 +109,9 @@ BIN = libarch$(LIBEXT)
|
|||||||
|
|
||||||
LDFLAGS += $(ARCHSCRIPT)
|
LDFLAGS += $(ARCHSCRIPT)
|
||||||
|
|
||||||
|
LDSTARTGROUP ?= --start-group
|
||||||
|
LDENDGROUP ?= --end-group
|
||||||
|
|
||||||
EXTRA_LIBS ?=
|
EXTRA_LIBS ?=
|
||||||
EXTRA_LIBPATHS ?=
|
EXTRA_LIBPATHS ?=
|
||||||
LINKLIBS ?=
|
LINKLIBS ?=
|
||||||
@ -176,7 +179,7 @@ nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT)
|
|||||||
$(Q) echo "LD: nuttx"
|
$(Q) echo "LD: nuttx"
|
||||||
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \
|
$(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \
|
||||||
-o $(NUTTX) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
-o $(NUTTX) $(HEAD_OBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) --end-group
|
$(LDSTARTGROUP) $(LDLIBS) $(EXTRA_LIBS) $(LIBGCC) $(LDENDGROUP)
|
||||||
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
$(Q) $(NM) $(NUTTX) | \
|
$(Q) $(NM) $(NUTTX) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
|
Loading…
Reference in New Issue
Block a user