aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-04-10 09:30:49 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-04-10 09:32:25 +0000
commit60e407ed3ad3fbd45c42272ef8f68b080a429408 (patch)
treebfa244b4356181cefda037374b023cb3619e8f27
parent7a33ff2a90161af1c55a8283eb33e10246bf8d06 (diff)
downloadports-60e407ed3ad3fbd45c42272ef8f68b080a429408.tar.gz
ports-60e407ed3ad3fbd45c42272ef8f68b080a429408.zip
lang/ocaml: fix build on powerpc*
-rw-r--r--lang/ocaml/files/patch-configure36
1 files changed, 33 insertions, 3 deletions
diff --git a/lang/ocaml/files/patch-configure b/lang/ocaml/files/patch-configure
index 5f1b980257d6..a1ac679f1a16 100644
--- a/lang/ocaml/files/patch-configure
+++ b/lang/ocaml/files/patch-configure
@@ -1,6 +1,15 @@
--- configure.orig 2022-12-20 12:26:44 UTC
+++ configure
-@@ -14169,10 +14169,14 @@ if test x"$supports_shared_libraries" = 'xtrue'; then
+@@ -14161,6 +14161,8 @@ if test x"$supports_shared_libraries" = 'xtrue'; then
+ natdynlink=true ;; #(
+ powerpc*-*-linux*) :
+ natdynlink=true ;; #(
++ powerpc*-*-freebsd*) :
++ natdynlink=true ;; #(
+ x86_64-*-solaris*) :
+ natdynlink=true ;; #(
+ i686-*-kfreebsd*) :
+@@ -14169,10 +14171,14 @@ if test x"$supports_shared_libraries" = 'xtrue'; then
natdynlink=true ;; #(
x86_64-*-dragonfly*) :
natdynlink=true ;; #(
@@ -17,7 +26,28 @@
i[3456]86-*-openbsd*) :
natdynlink=true ;; #(
x86_64-*-openbsd*) :
-@@ -14338,6 +14342,8 @@ fi; system=elf ;; #(
+@@ -14313,12 +14319,20 @@ case $host in #(
+ arch=amd64; system=win64 ;; #(
+ powerpc64le*-*-linux*) :
+ arch=power; model=ppc64le; system=elf ;; #(
++ powerpc64le*-*-freebsd*) :
++ arch=power; model=ppc64le; system=bsd_elf ;; #(
+ powerpc*-*-linux*) :
+ arch=power; if $arch64; then :
+ model=ppc64
+ else
+ model=ppc
+ fi; system=elf ;; #(
++ powerpc*-*-freebsd*) :
++ arch=power; if $arch64; then :
++ model=ppc64
++else
++ model=ppc
++fi; system=bsd_elf ;; #(
+ s390x*-*-linux*) :
+ arch=s390x; model=z10; system=elf ;; #(
+ # expected to match "gnueabihf" as well as "musleabihf"
+@@ -14338,6 +14352,8 @@ fi; system=elf ;; #(
arch=arm; model=armv6; system=linux_eabi ;; #(
armv6*-*-freebsd*) :
arch=arm; model=armv6; system=freebsd ;; #(
@@ -26,7 +56,7 @@
earmv6*-*-netbsd*) :
arch=arm; model=armv6; system=netbsd ;; #(
earmv7*-*-netbsd*) :
-@@ -14362,7 +14368,7 @@ fi; system=elf ;; #(
+@@ -14362,7 +14378,7 @@ fi; system=elf ;; #(
arch=amd64; system=dragonfly ;; #(
x86_64-*-solaris*) :
arch=amd64; system=solaris ;; #(