aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-01-05 23:24:08 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-01-10 09:46:58 +0000
commita004acd196a9a554caf5a891817eeef48e1ff97c (patch)
treee4146fd377ba741a4e4c13a9b09e6062585f39df
parent951dfc6f76dba7e53ebd8d4497918b4fc8c953b6 (diff)
downloadports-a004acd196a9a554caf5a891817eeef48e1ff97c.tar.gz
ports-a004acd196a9a554caf5a891817eeef48e1ff97c.zip
math/fftw3-float: fix build on powerpc64le 15
configure: error: Need a version of gcc with -maltivec
-rw-r--r--math/fftw3/files/patch-configure47
1 files changed, 45 insertions, 2 deletions
diff --git a/math/fftw3/files/patch-configure b/math/fftw3/files/patch-configure
index dab230ed959a..72d34f151801 100644
--- a/math/fftw3/files/patch-configure
+++ b/math/fftw3/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig 2020-12-30 00:12:14 UTC
+--- configure.orig 2021-09-14 14:43:44 UTC
+++ configure
-@@ -14937,7 +14937,7 @@ fi
+@@ -14938,7 +14938,7 @@ case "${ax_cv_c_compiler_vendor}" in
esac
case "${ax_cv_c_compiler_vendor}" in
@@ -9,3 +9,46 @@
# SSE/SSE2
if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
+@@ -15293,14 +15293,14 @@ else
+ if test "x$ax_check_compiler_flags" = xyes; then
+ ALTIVEC_CFLAGS="-faltivec"
+ else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
+-$as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
+-if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
++$as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
++if ${ax_cv_c_flags__maltivec+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+
+ ax_save_FLAGS=$CFLAGS
+- CFLAGS="-maltivec -mabi=altivec"
++ CFLAGS="-maltivec"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -15313,19 +15313,19 @@ if ac_fn_c_try_compile "$LINENO"; then :
+ }
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+- ax_cv_c_flags__maltivec__mabi_altivec=yes
++ ax_cv_c_flags__maltivec=yes
+ else
+- ax_cv_c_flags__maltivec__mabi_altivec=no
++ ax_cv_c_flags__maltivec=no
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$ax_save_FLAGS
+ fi
+
+-eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
++eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
+ $as_echo "$ax_check_compiler_flags" >&6; }
+ if test "x$ax_check_compiler_flags" = xyes; then
+- ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
++ ALTIVEC_CFLAGS="-maltivec -DFAKE__VEC__"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
+ $as_echo_n "checking whether C compiler accepts -fvec... " >&6; }