summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-03-21 10:20:16 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-03-21 10:20:16 +0000
commitdc316315a89846bdbb3a6411cb0779ef01bf11f6 (patch)
treebb406060f23a4b1ca54e35b8e7a1be6df549ef6b
parentdns/dnsmasq-devel: update to upstream release candidate #4 (diff)
databases/mariadb101-server: fix build on powerpc64 elfv2
Like other SQL servers, this port fails to build due to Clang bug: Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext byval dereferenceable(1) dereferenceable_or_null(1) %call54 = call signext i32 @my_atomic_cas32(i32* %62, i32* %64, %union.U_32 signext %65) in function lf_hash_insert fatal error: error in backend: Broken function found, compilation aborted!
-rw-r--r--databases/mariadb101-server/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/mariadb101-server/Makefile b/databases/mariadb101-server/Makefile
index 68880ab5d639..74f11f242be3 100644
--- a/databases/mariadb101-server/Makefile
+++ b/databases/mariadb101-server/Makefile
@@ -28,7 +28,7 @@ LICENSE_PERMS_PerconaFT= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
SUB_FILES= pkg-message
-USES= bison:build cmake:insource,noninja compiler:c++11-lib cpe libedit ncurses \
+USES= bison:build cmake:insource,noninja cpe libedit ncurses \
shebangfix ssl
USE_LDCONFIG= ${PREFIX}/lib/mysql
SHEBANG_FILES= scripts/*.sh
@@ -163,6 +163,12 @@ SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS=""
SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment "
.endif
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lib
+.endif
+
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} != base && ${PORT_OPTIONS:MGSSAPI_BASE}