nuttx-apps icon indicating copy to clipboard operation
nuttx-apps copied to clipboard

CELFFLAGS and friends are abused in Application.mk

Open yamt opened this issue 5 years ago • 1 comments

CELFFLAGS/CXXELFFLAGS/AELFFLAGS/LDELFFLAGS are for ELF modules. they should not be used eg. when building FLAT model libapps.

yamt avatar Mar 27 '20 00:03 yamt

my understanding is:

  • if CONFIG_BUILD_KERNEL=y, CELFFLAGS should be used
  • if CONFIG_BUILD_LOADABLE=n, CFLAGS should be used
  • otherwise, we need to build twice, one with CELFFLAGS and another with CFLAGS

yamt avatar Mar 27 '20 00:03 yamt