2020-11-10 07:40:01 +00:00
|
|
|
# Mark __cxa_guard_dummy as undefined so that implementation of static guards
|
2017-01-04 16:25:55 +00:00
|
|
|
# is taken from cxx_guards.o instead of libstdc++.a
|
2017-06-23 04:08:01 +00:00
|
|
|
COMPONENT_ADD_LDFLAGS += -u __cxa_guard_dummy
|
2017-10-04 06:29:21 +00:00
|
|
|
|
2019-04-24 13:02:25 +00:00
|
|
|
ifndef CONFIG_COMPILER_CXX_EXCEPTIONS
|
2017-10-04 06:29:21 +00:00
|
|
|
# If exceptions are disabled, ensure our fatal exception
|
|
|
|
# hooks are preferentially linked over libstdc++ which
|
|
|
|
# has full exception support
|
2021-02-07 08:51:52 +00:00
|
|
|
WRAP_FUNCTIONS = _Unwind_SetEnableExceptionFdeSorting __register_frame_info_bases __register_frame_info __register_frame __register_frame_info_table_bases __register_frame_info_table __register_frame_table __deregister_frame_info_bases __deregister_frame_info _Unwind_Find_FDE _Unwind_GetGR _Unwind_GetCFA _Unwind_GetIP _Unwind_GetIPInfo _Unwind_GetRegionStart _Unwind_GetDataRelBase _Unwind_GetTextRelBase _Unwind_SetIP _Unwind_SetGR _Unwind_GetLanguageSpecificData _Unwind_FindEnclosingFunction _Unwind_Resume _Unwind_RaiseException _Unwind_DeleteException _Unwind_ForcedUnwind _Unwind_Resume_or_Rethrow _Unwind_Backtrace __cxa_call_unexpected __gxx_personality_v0
|
|
|
|
WRAP_ARGUMENT := -Wl,--wrap=
|
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS))
|
2017-10-04 06:29:21 +00:00
|
|
|
COMPONENT_ADD_LDFLAGS += -u __cxx_fatal_exception
|
2021-02-07 08:51:52 +00:00
|
|
|
|
|
|
|
endif # CONFIG_COMPILER_CXX_EXCEPTIONS
|
2017-10-04 06:29:21 +00:00
|
|
|
|
2018-05-14 17:10:03 +00:00
|
|
|
COMPONENT_ADD_INCLUDEDIRS =
|