From 7c83376a4bcc25b0760ff535cdd4b6172ea0205a Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 20 Oct 2015 23:13:26 +0000 Subject: [PATCH] Only apply the LLDB packages if we're going to build it. PR: 203890 --- devel/llvm37/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devel/llvm37/Makefile b/devel/llvm37/Makefile index 072ccdbb6a03..94ffe28eb3d7 100644 --- a/devel/llvm37/Makefile +++ b/devel/llvm37/Makefile @@ -67,9 +67,6 @@ LLD_DISTFILES= lld-${DISTVERSION}.src${EXTRACT_SUFX} LLDB_DESC= Install lldb, the LLVM debugger (ignored on 9.x) LLDB_BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13 LLDB_DISTFILES= lldb-${DISTVERSION}.src${EXTRACT_SUFX} -LLDB_EXTRA_PATCHES= \ - ${PATCHDIR}/lldb-patch-svn-247116 \ - ${PATCHDIR}/lldb-patch-svn-249467 OPENMP_DESC= Install libomp, the LLVM OpenMP runtime library OPENMP_DISTFILES= openmp-${DISTVERSION}.src${EXTRACT_SUFX} GOLD_DESC= Build the LLVM Gold plugin for LTO @@ -246,6 +243,12 @@ LLDB_BUILD_DEPENDS+= \ .if ${OPSYS} == "FreeBSD" && ${COMPILER_TYPE} != clang # Evil hack around gcc48 not providing a usable c++11 environment on 9.x PLIST_SUB:= ${PLIST_SUB:NLLDB=*} LLDB="@comment " +.else +.if ${PORT_OPTIONS:MLLD} +EXTRA_PATCHES+= \ + ${PATCHDIR}/lldb-patch-svn-247116 \ + ${PATCHDIR}/lldb-patch-svn-249467 +.endif .endif post-extract-CLANG-on: