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
This commit is contained in:
Renz Christian Bagaporo 2019-11-08 16:03:27 +08:00
parent e4137cc6ca
commit 0c2202ef3e

View file

@ -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)