]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/rng-tools-6-Enable-RDRAND-for-i586-too.patch
squid 3.5.28: latest patches (01-02)
[people/pmueller/ipfire-2.x.git] / src / patches / rng-tools-6-Enable-RDRAND-for-i586-too.patch
CommitLineData
fd0a0384
MT
1From 1f023b49959aa58246e6bb7091ba7710116f6915 Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Sun, 9 Sep 2018 17:29:15 +0100
4Subject: [PATCH] Enable RDRAND for i586, too
5
6IPFire is being compiled for i586 omitting some instructions
7for i686. However, RDRAND is available on some systems and
8can of course be used.
9
10Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11
12Pull request sent: https://github.com/nhorman/rng-tools/pull/31
13
14---
15 configure.ac | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index faba7cc9857e..716175328ff6 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -53,8 +53,8 @@ AC_CHECK_TOOLS([AR], [ar gar], :)
23
24 AX_PTHREAD
25
26-AM_CONDITIONAL([RDRAND], [test $target_cpu = x86_64 -o $target_cpu = i686])
27-AS_IF([test $target_cpu = x86_64 -o $target_cpu = i686], [AC_DEFINE([HAVE_RDRAND],1,[Enable RDRAND])],[])
28+AM_CONDITIONAL([RDRAND], [test $target_cpu = x86_64 -o $target_cpu = i686 -o $target_cpu = i586])
29+AS_IF([test $target_cpu = x86_64 -o $target_cpu = i686 -o $target_cpu = i586], [AC_DEFINE([HAVE_RDRAND],1,[Enable RDRAND])],[])
30
31 AM_CONDITIONAL([DARN], [test $target_cpu = powerpc64le])
32 AS_IF([test $target_cpu = powerpc64le], [AC_DEFINE([HAVE_DARN],1,[Enable DARN])],[])
33--
342.17.1
35