From 705e4189db67d48656a06103975442a7ba88cf01 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Fri, 8 Nov 2019 16:03:27 +0800 Subject: [PATCH] examples: fix idf as library example build on macOS GCC prefixes underscore on symbol names on macOS, and so the set undefined symbol `-u app_main` won't work. However, this is unecessary, as the source file that defines it is specified directly to the executable, and not through a static library. Closes https://github.com/espressif/esp-idf/issues/4168 --- .../build_system/cmake/idf_as_lib/stubs/esp32/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/build_system/cmake/idf_as_lib/stubs/esp32/CMakeLists.txt b/examples/build_system/cmake/idf_as_lib/stubs/esp32/CMakeLists.txt index e8d2da010d..15d3145a92 100644 --- a/examples/build_system/cmake/idf_as_lib/stubs/esp32/CMakeLists.txt +++ b/examples/build_system/cmake/idf_as_lib/stubs/esp32/CMakeLists.txt @@ -2,5 +2,4 @@ add_library(stub_esp32 STATIC system_api.c flash_ops.c cpu_start.c) target_include_directories(stub_esp32 PUBLIC .) add_library(stub::esp32 ALIAS stub_esp32) -target_link_libraries(stub_esp32 "-u app_main") target_link_libraries(stub_esp32 stub::spi_flash) \ No newline at end of file