Date: Sat, 21 Mar 2020 10:33:40 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r528844 - head/databases/mysql55-server Message-ID: <202003211033.02LAXeOg033345@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sat Mar 21 10:33:40 2020 New Revision: 528844 URL: https://svnweb.freebsd.org/changeset/ports/528844 Log: databases/mysql55-server: fix build on powerpc64 elfv2 Like other SQL servers, Clang has issues compiling this port: Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext byval dereferenceable(1) dereferenceable_or_null(1) %call53 = 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! Switch to GCC for now. Since libc++ requires C++11 with GCC, use it instead of C++98. Modified: head/databases/mysql55-server/Makefile Modified: head/databases/mysql55-server/Makefile ============================================================================== --- head/databases/mysql55-server/Makefile Sat Mar 21 10:20:16 2020 (r528843) +++ head/databases/mysql55-server/Makefile Sat Mar 21 10:33:40 2020 (r528844) @@ -14,7 +14,7 @@ COMMENT?= Multithreaded SQL database (server) LICENSE= GPLv2 SLAVEDIRS= databases/mysql55-client -USES= cmake:insource,noninja compiler:c++11-lang readline shebangfix +USES= cmake:insource,noninja readline shebangfix CXXFLAGS+= ${CPPFLAGS} NO_OPTIONS_SORT=yes @@ -49,6 +49,14 @@ SHEBANG_FILES= scripts/*.pl* scripts/*.sh .endif .include <bsd.port.options.mk> + +.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2 +USES+= compiler:gcc-c++11-lib +USE_CXXSTD= gnu++11 +.else +USES+= compiler:c++11-lang +USE_CXXSTD= gnu++98 +.endif .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS=""
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003211033.02LAXeOg033345>