summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-29 21:37:03 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-29 21:37:03 +0000
commit4b2b20a5a853123285b554fafa773d6ae705ebc1 (patch)
tree77a142f0b0a5a93e6b05fea0efa5eb91b34d1cc9
parentdevel/psvn: upgrade 20120326.212349 -> 20150720.214200 (diff)
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
Notes
Notes: svn path=/head/; revision=518673
-rw-r--r--graphics/mesa-dri/Makefile.common6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common
index 36d55e811344..4442588bffaa 100644
--- a/graphics/mesa-dri/Makefile.common
+++ b/graphics/mesa-dri/Makefile.common
@@ -86,6 +86,12 @@ BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT}
.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