packaging: Ensure LTO is disabled 21/297821/1 accepted/tizen/8.0/unified/20231005.094740 accepted/tizen/unified/20230825.121030 tizen_8.0_m2_release
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 23 Aug 2023 21:26:49 +0000 (23:26 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 24 Aug 2023 20:38:30 +0000 (22:38 +0200)
Cryptsetup fails to link when LTO is enabled. Disable it, even
if project config would enable it globally.

Change-Id: I51b564fc921e3f7b09cd85ff3bb48a851f70bfe3

packaging/cryptsetup.spec

index 13881b5..000fc38 100644 (file)
@@ -64,7 +64,7 @@ cp %{SOURCE1} .
 
 chmod +x ./autogen.sh
 ./autogen.sh
-%configure \
+CFLAGS="-fno-lto" %configure \
            --disable-cryptsetup-reencrypt \
            --disable-integritysetup \
            --disable-asciidoc \