lang/ocaml: fix build on powerpc64le
Use GCC, like on powerpc64 and add powerpc64le entry to configure script. Approved by: tier 2 blanket
This commit is contained in:
parent
17e94cf142
commit
3aaf31100b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=560007
2 changed files with 10 additions and 5 deletions
|
@ -110,6 +110,10 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-asmcomp_power_arch.ml
|
|||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == powerpc64le
|
||||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@if ! (cd ${WRKDIR} && \
|
||||
|
|
|
@ -25,17 +25,18 @@
|
|||
esac
|
||||
fi
|
||||
|
||||
@@ -921,6 +923,9 @@ case "$target" in
|
||||
@@ -921,6 +923,10 @@ case "$target" in
|
||||
powerpc*-*-linux*) arch=power;
|
||||
if $arch64; then model=ppc64; else model=ppc; fi
|
||||
system=elf;;
|
||||
+ powerpc64le*-*-freebsd*) arch=power; model=ppc64le; system=bsd_elf;;
|
||||
+ powerpc*-*-freebsd*) arch=power;
|
||||
+ if $arch64; then model=ppc64; else model=ppc; fi
|
||||
+ system=bsd_elf;;
|
||||
powerpc-*-netbsd*) arch=power; model=ppc; system=elf;;
|
||||
powerpc-*-openbsd*) arch=power; model=ppc; system=bsd_elf;;
|
||||
s390x*-*-linux*) arch=s390x; model=z10; system=elf;;
|
||||
@@ -930,6 +935,7 @@ case "$target" in
|
||||
@@ -930,6 +936,7 @@ case "$target" in
|
||||
armv6t2*-*-linux-gnueabi) arch=arm; model=armv6t2; system=linux_eabi;;
|
||||
armv6*-*-linux-gnueabi) arch=arm; model=armv6; system=linux_eabi;;
|
||||
armv6*-*-freebsd*) arch=arm; model=armv6; system=freebsd;;
|
||||
|
@ -43,7 +44,7 @@
|
|||
earmv6*-*-netbsd*) arch=arm; model=armv6; system=netbsd;;
|
||||
earmv7*-*-netbsd*) arch=arm; model=armv7; system=netbsd;;
|
||||
armv5te*-*-linux-gnueabi) arch=arm; model=armv5te; system=linux_eabi;;
|
||||
@@ -946,6 +952,7 @@ case "$target" in
|
||||
@@ -946,6 +953,7 @@ case "$target" in
|
||||
x86_64-*-darwin*) arch=amd64; system=macosx;;
|
||||
x86_64-*-mingw*) arch=amd64; system=mingw;;
|
||||
aarch64-*-linux*) arch=arm64; system=linux;;
|
||||
|
@ -51,7 +52,7 @@
|
|||
x86_64-*-cygwin*) arch=amd64; system=cygwin;;
|
||||
esac
|
||||
|
||||
@@ -1051,10 +1058,12 @@ case "$arch,$system" in
|
||||
@@ -1051,10 +1059,12 @@ case "$arch,$system" in
|
||||
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
|
||||
amd64,linux) profiling='true';;
|
||||
amd64,openbsd) profiling='true';;
|
||||
|
@ -64,7 +65,7 @@
|
|||
arm,linux*) profiling='true';;
|
||||
power,elf) profiling='true';;
|
||||
power,bsd*) profiling='true';;
|
||||
@@ -1168,7 +1177,7 @@ fi
|
||||
@@ -1168,7 +1178,7 @@ fi
|
||||
|
||||
if test "$with_curses" = "yes"; then
|
||||
for libs in "" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do
|
||||
|
|
Loading…
Reference in a new issue