[packages/erlang] disable use of _Float16 on %{ix86} without sse2

atler atler at pld-linux.org
Wed Nov 20 14:30:23 CET 2024


commit 90ef7c5eefeee1c93227ecfbf2e16f6fe18f293c
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Nov 20 13:42:46 2024 +0100

    disable use of _Float16 on %{ix86} without sse2
    
    gcc 14 changed its behavior and sucessfully computes sizeof(_Float16)
    for such targets. see also:
    https://bugs.gentoo.org/924361

 erlang.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/erlang.spec b/erlang.spec
index 41ecced..3c534f6 100644
--- a/erlang.spec
+++ b/erlang.spec
@@ -48,7 +48,7 @@ BuildRequires:	openssl-devel >= 0.9.7
 BuildRequires:	openssl-tools
 BuildRequires:	perl-base
 BuildRequires:	rpm-build >= 4.6
-BuildRequires:	rpmbuild(macros) >= 1.752
+BuildRequires:	rpmbuild(macros) >= 2.007
 BuildRequires:	xorg-lib-libX11-devel
 %if %{with odbc}
 BuildRequires:	unixODBC-devel
@@ -98,6 +98,11 @@ Dokumentacja do Erlanga.
 ./otp_build update_configure --no-commit
 
 %configure \
+%ifarch %{ix86}
+%ifnarch %{x86_with_sse2}
+	ac_cv_sizeof__Float16=0 \
+%endif
+%endif
 %ifarch sparc
 	CFLAGS="%{rpmcflags} -mv8plus" \
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/erlang.git/commitdiff/90ef7c5eefeee1c93227ecfbf2e16f6fe18f293c



More information about the pld-cvs-commit mailing list