From f2eb89895aa8aa946e89089195bb9fc5f14692c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 1 Jul 2020 13:43:25 +0200 Subject: [PATCH] Use a better way to disable LTO --- libxcrypt.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libxcrypt.spec b/libxcrypt.spec index cbdd09a..621471c 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -151,6 +151,11 @@ fi \ %global _ld_strict_symbol_defs 1 +# The configure scripts want to use -Wl,--wrap, +# which is not compatible with LTO. +%undefine _lto_cflags + + Name: libxcrypt Version: 4.4.16 Release: 5%{?dist} @@ -331,9 +336,6 @@ EOF %build -# The configure scripts want to use -Wl,--wrap which is not compatible with LTO -%define _lto_cflags %{nil} - mkdir -p %{_vpath_builddir} # Build the default system library.