svn commit: r532698 - branches/2020Q2/benchmarks/libcelero
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Apr 23 17:19:57 UTC 2020
Author: pkubaj
Date: Thu Apr 23 17:19:54 2020
New Revision: 532698
URL: https://svnweb.freebsd.org/changeset/ports/532698
Log:
MFH: r532697
benchmarks/libcelero: fix build on GCC architectures and powerpc64 elfv2
clang 8 doesn't have full support for powerpc, powerpc64 or powerpcspe, so use
GCC there.
On powerpc64 elfv2, the default is to build for elfv1, so pass a flag to fix it.
Approved by: portmgr (fix build blanket)
Modified:
branches/2020Q2/benchmarks/libcelero/Makefile
Directory Properties:
branches/2020Q2/ (props changed)
Modified: branches/2020Q2/benchmarks/libcelero/Makefile
==============================================================================
--- branches/2020Q2/benchmarks/libcelero/Makefile Thu Apr 23 17:18:48 2020 (r532697)
+++ branches/2020Q2/benchmarks/libcelero/Makefile Thu Apr 23 17:19:54 2020 (r532698)
@@ -14,17 +14,26 @@ LICENSE_FILE= ${WRKSRC}/license.txt
BUILD_DEPENDS= ${LOCALBASE}/include/sys/sysinfo.h:devel/libsysinfo
-USES= cmake localbase:ldflags # compiler:c++11-lang
+USES= cmake compiler localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= DigitalInBlue
GH_PROJECT= Celero
USE_LDCONFIG= yes
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+USE_GCC= yes
+.else
# workaround for breakage with clang-10: https://github.com/DigitalInBlue/Celero/issues/142
LLVM_VER= 80
BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
CPP= clang-cpp${LLVM_VER}
CC= clang${LLVM_VER}
CXX= clang++${LLVM_VER}
+.if ${ARCH} == powerpc64
+CFLAGS+= -mabi=elfv2
+.endif
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list