From: Oleksij Rempel Date: Sat, 1 Oct 2016 14:24:32 +0000 (+0200) Subject: CMakeLists.txt: add -fno-lto X-Git-Url: https://jxself.org/git/?p=open-ath9k-htc-firmware.git;a=commitdiff_plain;h=87ed21e55b0431cad3fcb8326cc04ad8c8309ded 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 --- 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