python314: fix universal2 build on Intel

Closes: https://trac.macports.org/ticket/73956
This commit is contained in:
Joshua Root
2026-05-03 07:01:38 +10:00
parent c84b55cf68
commit f5fcd03e21
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -205,6 +205,7 @@ post-destroot {
}
variant universal {
patchfiles-append hacl_universal2.patch
post-patch {
set universal_arch_flags {}
set arch_run_32bit {}
@@ -0,0 +1,11 @@
--- configure.orig 2026-05-03 06:30:45
+++ configure 2026-05-03 06:52:57
@@ -32155,7 +32155,7 @@
LIBHACL_LDFLAGS= # for now, no specific linker flags are needed
-if test "$UNIVERSAL_ARCHS" = "universal2" -o \
+if test \( "${UNIVERSALSDK}" != "/" -a "$dep_target_major" -ge 11 \) -o \
\( "$build_cpu" = "aarch64" -a "$build_vendor" = "apple" \)
then
use_hacl_universal2_impl=yes