Skip to content

Commit 738c848

Browse files
rhelmotMic92
authored andcommitted
python3: Enable FreeBSD cross build
This only enables x86_64-unknown-freebsd, not any other FreeBSD, since I do not have any other machines to tests on. If you're reading this, feel free to try out other arches! Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
1 parent e2f7107 commit 738c848

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable cross-compiling for x86_64-freebsd

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ then
339339
*-*-wasi)
340340
ac_sys_system=WASI
341341
;;
342+
*-*-freebsd)
343+
ac_sys_system=FreeBSD
344+
;;
342345
*)
343346
# for now, limit cross builds to known configurations
344347
MACHDEP="unknown"
@@ -777,6 +780,9 @@ if test "$cross_compiling" = yes; then
777780
wasm32-*-* | wasm64-*-*)
778781
_host_ident=$host_cpu
779782
;;
783+
x86_64-*-freebsd)
784+
_host_cpu=x86_64
785+
;;
780786
*)
781787
# for now, limit cross builds to known configurations
782788
MACHDEP="unknown"

0 commit comments

Comments
 (0)