libe57format: Disable LTO to fix linker error in downstream builds that use `.a` file (#410786)

authored by Niklas Hambüchen and committed by GitHub afa54452 0e551671

+4
+4
pkgs/by-name/li/libe57format/package.nix
··· 51 ]; 52 53 cmakeFlags = [ 54 # See https://github.com/asmaloney/libE57Format/blob/9372bdea8db2cc0c032a08f6d655a53833d484b8/test/README.md 55 ( 56 if finalAttrs.finalPackage.doCheck then
··· 51 ]; 52 53 cmakeFlags = [ 54 + # Without this, LTO will be enabled, which seems to cause 55 + # errors when consumers try to link the `.a` file, see: 56 + # https://github.com/asmaloney/libE57Format/pull/313#issuecomment-2907797367 57 + "-DE57_RELEASE_LTO=OFF" 58 # See https://github.com/asmaloney/libE57Format/blob/9372bdea8db2cc0c032a08f6d655a53833d484b8/test/README.md 59 ( 60 if finalAttrs.finalPackage.doCheck then