svn commit: r518673 - head/graphics/mesa-dri
Piotr Kubaj
pkubaj at FreeBSD.org
Fri Nov 29 21:37:04 UTC 2019
Author: pkubaj
Date: Fri Nov 29 21:37:03 2019
New Revision: 518673
URL: https://svnweb.freebsd.org/changeset/ports/518673
Log:
graphics/mesa-dri: fix build on powerpc64 elfv2
Base LLVM9 fails to build this port with clang crash (reported on https://bugs.llvm.org/show_bug.cgi?id=43862). The port builds when using LLVM8. Since we depend on LLVM8 anyway, use it also for compilation on elfv2.
Approved by: zeising (maintainer), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D22274
Modified:
head/graphics/mesa-dri/Makefile.common
Modified: head/graphics/mesa-dri/Makefile.common
==============================================================================
--- head/graphics/mesa-dri/Makefile.common Fri Nov 29 19:52:37 2019 (r518672)
+++ head/graphics/mesa-dri/Makefile.common Fri Nov 29 21:37:03 2019 (r518673)
@@ -86,6 +86,12 @@ BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llv
.if ${COMPONENT} != libs
RUN_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT}
.endif
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+CFLAGS+= -mabi=elfv2
+CXXFLAGS+= -mabi=elfv2
+CONFIGURE_ENV+= CC=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \
+ CXX=${LOCALBASE}/bin/clang++${LLVM_DEFAULT}
+.endif
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib
CONFIGURE_ARGS+= --enable-llvm
More information about the svn-ports-head
mailing list