sim/c++: correct the compile flags
fix the following linker error: nuttx.rel:(.eh_frame+0x93): undefined reference to `__gxx_personality_v0' Change-Id: I94f43a15275194d42199c91f276e8848ad5189f6 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
cfc58d1913
commit
159053ab62
|
@ -292,7 +292,9 @@ endif
|
||||||
|
|
||||||
nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
|
nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
|
||||||
$(Q) echo "LD: nuttx$(EXEEXT)"
|
$(Q) echo "LD: nuttx$(EXEEXT)"
|
||||||
$(Q) "$(CC)" $(CCLINKFLAGS) $(LIBPATHS) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(DRVLIB) $(STDLIBS)
|
$(if $(CONFIG_HAVE_CXX),\
|
||||||
|
$(Q) "$(CXX)" $(CCLINKFLAGS) $(LIBPATHS) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(DRVLIB) $(STDLIBS),\
|
||||||
|
$(Q) "$(CC)" $(CCLINKFLAGS) $(LIBPATHS) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(DRVLIB) $(STDLIBS))
|
||||||
$(Q) $(NM) $(TOPDIR)/$@ | \
|
$(Q) $(NM) $(TOPDIR)/$@ | \
|
||||||
grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
|
Loading…
Reference in New Issue