I am trying to link an application with several static libraries in GCC.
There are two libraries that cause problems. Libsupport provides a terminal for the application. It relies on libcpu to provide serial communications, synchronization, and synchronization. Libcpu relies on libsupport to provide queues for serial data, etc.
If I first tell libsupport when the libcpu link cannot be associated with the queue functions. I point out that libcpu first lib support cannot bind serial communication functions (or more).
It seems that GCC parses the library only once and discards any unused objects.
Can I ask gcc to parse libraries multiple times or include all objects?
source share