Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: EXTRA_LIBS and EXTRA_LIBPATHS

...

See PR-1344, git commit #f5311de6b42466ab5c6ef299dab0ecc417131bbe in the main NuttX repository.

Custom Boards May Not Need EXTRA_LIBS and EXTRA_LIBPATHS Definitions

The EXTRA_LIBS and EXTRA_LIBPATHS make variables were previously defined in many boards' scripts/Make.defs files. These are now defined in a more central location: arch/*/src/*/Toolchain.defs. Your board's scripts/Make.defs usually includes this file. Boards included in NuttX have been updated, but if you are building NuttX for a custom board, you may need to update your board's scripts/Make.defs file to ensure you build with the correct definitions.

If you have lines like these:


Code Block
languagetext
EXTRA_LIBPATHS = -L "${shell dirname "$(LIBSUPXX)"}"
EXTRA_LIBS = -lsupc++

You may want to do one of the following:

  • If they are redundant to the definitions provided in the included arch/*/src/*/Toolchain.defs, remove these lines, or
  • If they contain additional needed libraries and paths not present in arch/*/src/*/Toolchain.defs, remove any redundant definitions and change the assignment '=' to '+='.

See PR-1404, git commit #4910d43ab0fc360dbddb1f8a31db2a3ee383b46d in the main NuttX repository.

Known Problems In This Release

...