Hi
I want to build a static library for my project with gnuarm toolchain. To decrease the code size, I set the library CMAKE_C_FLAGS as "-flto", however my project gives the build error about undefined reference symbols from the library as I linked the library with --lto. How to solve this issue?
Best Regards
Jianliang Shen
Hello, this is I believe expected and correct behavior. Certainly for armclang, this is not supported.https://www.keil.com/support/man/docs/armclang_ref/armclang_ref_chr1413472574438.htm
Sorry, I know armclang doesn't support -flto static library, but what about gnuarm which is arm-none-eabi-gcc? Thanks.