svn commit: r541305 - head/devel/oclgrind

Piotr Kubaj pkubaj at FreeBSD.org
Sun Jul 5 20:01:19 UTC 2020


Author: pkubaj
Date: Sun Jul  5 20:01:19 2020
New Revision: 541305
URL: https://svnweb.freebsd.org/changeset/ports/541305

Log:
  devel/oclgrind: fix build on powerpc64 elfv2
  
  LLVM 8 works by default in elfv1 mode, which doesn't really work on FreeBSD with our gcc 4.2, but supports switching to elfv2. Since it build properly on elfv2, hardcode it until the port switches to newer LLVM.

Modified:
  head/devel/oclgrind/Makefile

Modified: head/devel/oclgrind/Makefile
==============================================================================
--- head/devel/oclgrind/Makefile	Sun Jul  5 19:45:35 2020	(r541304)
+++ head/devel/oclgrind/Makefile	Sun Jul  5 20:01:19 2020	(r541305)
@@ -29,6 +29,8 @@ CC=		clang${LLVM_DEFAULT}
 CXX=		clang++${LLVM_DEFAULT}
 CPP=		clang-cpp${LLVM_DEFAULT}
 
+# to be removed after switching to LLVM 9 or later
+CXXFLAGS_powerpc64=	-mabi=elfv2
 CMAKE_ARGS+=	-DLLVM_DIR=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/llvm
 
 .include <bsd.port.options.mk>


More information about the svn-ports-head mailing list