Hi,
I have an application-specific component that is not referenced from anywhere else. Because of that the linker is not including the module. While this behavior is OK for the vast library of ESP-specific components, it causes issues for my app. Of course I can add an artificial dependency to that application-specific component but I wonder if there are any flags/parameters where I can tell the linker to always include my components.
Thanks,
AP
Force linking of application-specific components
Re: Force linking of application-specific components
answering my own question: in component.mk, add:
Code: Select all
COMPONENT_ADD_LDFLAGS=-Wl,--whole-archive build/$(COMPONENT_NAME)/lib$(COMPONENT_NAME).a -Wl,--no-whole-archive
Who is online
Users browsing this forum: No registered users and 167 guests