aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python313/files/patch-Tools_jit___targets.py
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /lang/python313/files/patch-Tools_jit___targets.py
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'lang/python313/files/patch-Tools_jit___targets.py')
-rw-r--r--lang/python313/files/patch-Tools_jit___targets.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/python313/files/patch-Tools_jit___targets.py b/lang/python313/files/patch-Tools_jit___targets.py
new file mode 100644
index 000000000000..1e514db1f026
--- /dev/null
+++ b/lang/python313/files/patch-Tools_jit___targets.py
@@ -0,0 +1,12 @@
+--- Tools/jit/_targets.py.orig 2025-04-08 13:54:08 UTC
++++ Tools/jit/_targets.py
+@@ -538,6 +538,9 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
+ elif re.fullmatch(r"x86_64-.*-linux-gnu", host):
+ args = ["-fpic"]
+ target = _ELF(host, args=args, ghccc=True)
++ elif re.fullmatch(r"amd64-.*-freebsd.*", host):
++ args = ["-fpic"]
++ target = _ELF(host, args=args, ghccc=True)
+ else:
+ raise ValueError(host)
+ return target