forked from pool/libsodium
Accepting request 726204 from home:michel_mno:branches:devel:libraries:c_c++
- Revert previous change about cpuid as previous change rejected in https://build.opensuse.org/request/show/724809 - Disable LTO as bypass boo#1148184 OBS-URL: https://build.opensuse.org/request/show/726204 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsodium?expand=0&rev=75
This commit is contained in:
parent
2fff9987a6
commit
1e6f9451a8
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 26 14:44:21 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
- Revert previous change about cpuid as previous change rejected
|
||||
in https://build.opensuse.org/request/show/724809
|
||||
- Disable LTO as bypass boo#1148184
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 16 09:17:55 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
%define sover 23
|
||||
%define lname %{name}%{sover}
|
||||
Name: libsodium
|
||||
@ -29,9 +31,7 @@ Source0: https://download.libsodium.org/libsodium/releases/%{name}-%{vers
|
||||
Source1: https://download.libsodium.org/libsodium/releases/%{name}-%{version}.tar.gz.sig
|
||||
Source2: %{name}.keyring
|
||||
Source99: baselibs.conf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
Patch1: libsodium_configure_cpuid_chg.patch
|
||||
|
||||
%description
|
||||
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
|
||||
@ -64,10 +64,10 @@ to compile and develop applications that use libsodium.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fvi
|
||||
# Do _NOT_ change CFLAGS
|
||||
# See https://github.com/jedisct1/libsodium/issues/604
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-silent-rules
|
||||
|
@ -1,28 +0,0 @@
|
||||
From: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
Subject: libsodium configure cpuid chg
|
||||
Date: Fri, 16 Aug 2019 10:58:52 +0200
|
||||
|
||||
libsodium configure cpuid chg
|
||||
|
||||
To avoid to have bad detection of cpuid when lto is enabled.
|
||||
This should solve the old upstream issue#604
|
||||
https://github.com/jedisct1/libsodium/issues/604
|
||||
|
||||
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: libsodium-1.0.18/configure.ac
|
||||
===================================================================
|
||||
--- libsodium-1.0.18.orig/configure.ac
|
||||
+++ libsodium-1.0.18/configure.ac
|
||||
@@ -694,7 +694,7 @@ AC_SUBST(HAVE_TI_MODE_V)
|
||||
HAVE_CPUID_V=0
|
||||
AS_IF([test "$enable_asm" != "no"],[
|
||||
AC_MSG_CHECKING(for cpuid instruction)
|
||||
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[
|
||||
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[
|
||||
unsigned int cpu_info[4];
|
||||
__asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
|
||||
"=a" (cpu_info[0]), "=&r" (cpu_info[1]),
|
Loading…
x
Reference in New Issue
Block a user