]> granicus.if.org Git - esp-idf/commit
cmake: For gcc8 use linker to find paths to libc, libm, libstdc++, etc
authorAngus Gratton <angus@espressif.com>
Mon, 15 Apr 2019 03:45:08 +0000 (13:45 +1000)
committerRenz Christian Bagaporo <renz@espressif.com>
Tue, 28 May 2019 04:54:37 +0000 (12:54 +0800)
commit22514c1dd9164466cfe0169dbfd67c3f79226031
tree13562803303ae1cb2717c5e1c041ab2e99a82429
parent2c1208004949373d374cdcd149fad3daa06dd11d
cmake: For gcc8 use linker to find paths to libc, libm, libstdc++, etc

Removes the need to know/guess the paths to these libraries. Once we are gcc 8 only, we
can remove -nostdlib and no additional arguments are needed for system libraries.

The catch is: any time IDF overrides a symbol in the toolchain sysroot, we need
an undefined linker marker to make sure this symbol is seen by linker.
13 files changed:
components/app_trace/CMakeLists.txt
components/bootloader/subproject/main/bootloader_start.c
components/cxx/CMakeLists.txt
components/esp32/CMakeLists.txt
components/esp32/ld/esp32.project.ld.in
components/esp_rom/CMakeLists.txt
components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
components/newlib/CMakeLists.txt
components/newlib/pthread.c
components/vfs/CMakeLists.txt
components/vfs/vfs.c
tools/cmake/build.cmake
tools/cmake/toolchain-esp32.cmake