mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
With CONFIG_FDPIC, the CMake build gave the FDPIC options to a loadable module only. A shared library (DYNLIB) got neither -mfdpic nor the FDPIC link, but the "-r" link of the non-FDPIC case. So the library was a relocatable object, and a module that named it in DT_NEEDED did not link: "multiple definition" and "dangerous relocation". Give a shared library the same options as a module, as LDMODULEFLAGS and CMODULEFLAGS in common/Toolchain.defs already do for the make build. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||