From 87ed21e55b0431cad3fcb8326cc04ad8c8309ded Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Sat, 1 Oct 2016 16:24:32 +0200 Subject: [PATCH] CMakeLists.txt: add -fno-lto this option is needed to make compile work with cross-toolchain properly. We are not using LTO any way, but for some reasons if cross-tolachain is compailed without LTO, then FW compilation will fail. With and without this option FW has same md5sum - So it should be save to use this option. Signed-off-by: Oleksij Rempel --- target_firmware/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/target_firmware/CMakeLists.txt b/target_firmware/CMakeLists.txt index 3710617..78961be 100644 --- a/target_firmware/CMakeLists.txt +++ b/target_firmware/CMakeLists.txt @@ -101,6 +101,7 @@ ADD_CUSTOM_COMMAND( DEPENDS firmware COMMAND ${CMAKE_C_COMPILER} -nostdlib + -fno-lto -Wl,--start-group ${CMAKE_BINARY_DIR}/libfirmware.a -Wl,--end-group -- 2.25.1