forked from espressif/esp-idf
tools: enable libstd++ to use idf posix-semaphores
Closes https://github.com/espressif/esp-idf/issues/10598
This commit is contained in:
@@ -93,7 +93,9 @@ function(__build_set_default_build_specifications)
|
|||||||
unset(c_compile_options)
|
unset(c_compile_options)
|
||||||
unset(cxx_compile_options)
|
unset(cxx_compile_options)
|
||||||
|
|
||||||
list(APPEND compile_definitions "_GNU_SOURCE")
|
list(APPEND compile_definitions "_GLIBCXX_USE_POSIX_SEMAPHORE" # These two lines enable libstd++ to use
|
||||||
|
"_GLIBCXX_HAVE_POSIX_SEMAPHORE" # posix-semaphores from components/pthread
|
||||||
|
"_GNU_SOURCE")
|
||||||
|
|
||||||
list(APPEND compile_options "-ffunction-sections"
|
list(APPEND compile_options "-ffunction-sections"
|
||||||
"-fdata-sections"
|
"-fdata-sections"
|
||||||
|
Reference in New Issue
Block a user