git: 60e407ed3ad3 - main - lang/ocaml: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Apr 2024 09:32:47 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=60e407ed3ad3fbd45c42272ef8f68b080a429408 commit 60e407ed3ad3fbd45c42272ef8f68b080a429408 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-04-10 09:30:49 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-04-10 09:32:25 +0000 lang/ocaml: fix build on powerpc* --- lang/ocaml/files/patch-configure | 36 +++++++++++++++++++++++++++++++++--- 1 file 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 ;; #(