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

LIBPATHS and EXTRA_LIBS appending not work for app's Makefile

Open dangbinghoo opened this issue 2 years ago • 4 comments

if put bellow in user apps Makefile

EXTRA_LIBPATHS += -L $(PWD)
LIBPATHS += $(PWD)
EXTRA_LIBS += -lnimcache

it seems, when linking the final binary, these flags were not appended to LD.

and CFLAGS += also won't work, IS there any way to achieve this ?

dangbinghoo avatar Mar 11 '22 07:03 dangbinghoo

Yes, nuttx/Makefile invoke but not include apps/Makefile. So the change to EXTRA_LIBPATHS/EXTRA_LIBS can't propagate to nuttx/Makefile.

xiaoxiang781216 avatar Mar 11 '22 08:03 xiaoxiang781216

It is welcome to provide a solution fix this problem.

xiaoxiang781216 avatar Mar 11 '22 08:03 xiaoxiang781216

is there any nuttx talking groups or what exists? PS: I'm from CN, QQ group is ok.

dangbinghoo avatar Mar 11 '22 08:03 dangbinghoo

Yes, here: https://nuttx.apache.org/community/

xiaoxiang781216 avatar Mar 11 '22 08:03 xiaoxiang781216