diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-04-07 20:12:40 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-04-07 20:16:48 +0200 |
commit | 3e22aea7c14b8db064247f5e60af91c742b403fb (patch) | |
tree | 795858fc17d8998b97aed31ff02f8bd9b1a26a47 | |
parent | app-crypt/yubihsm-shell: do not run hw-dependent tests and sanitize cflags (diff) | |
download | gentoo-3e22aea7c14b8db064247f5e60af91c742b403fb.tar.gz gentoo-3e22aea7c14b8db064247f5e60af91c742b403fb.tar.bz2 gentoo-3e22aea7c14b8db064247f5e60af91c742b403fb.zip |
dev-libs/sleef: fix for riscv
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
-rw-r--r-- | dev-libs/sleef/files/sleef-3.5.1-riscv.patch | 11 | ||||
-rw-r--r-- | dev-libs/sleef/sleef-3.5.1.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-libs/sleef/files/sleef-3.5.1-riscv.patch b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch new file mode 100644 index 000000000000..bb5ad68416f3 --- /dev/null +++ b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch @@ -0,0 +1,11 @@ +--- a/src/arch/helperpurec_scalar.h 2023-04-07 19:54:14.823254936 +0200 ++++ b/src/arch/helperpurec_scalar.h 2023-04-07 19:54:29.684024763 +0200 +@@ -54,7 +54,7 @@ + #define ENABLE_FMA_SP + //@#define ENABLE_FMA_SP + +-#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__) ++#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__) || defined(__riscv) + #ifndef FP_FAST_FMA + #define FP_FAST_FMA + //@#define FP_FAST_FMA diff --git a/dev-libs/sleef/sleef-3.5.1.ebuild b/dev-libs/sleef/sleef-3.5.1.ebuild index c35fcc270ed5..b25e3d68bb1b 100644 --- a/dev-libs/sleef/sleef-3.5.1.ebuild +++ b/dev-libs/sleef/sleef-3.5.1.ebuild @@ -22,6 +22,7 @@ BDEPEND="" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-riscv.patch ) src_configure() { |