summaryrefslogtreecommitdiff
path: root/lang/ghc90
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2021-05-23 06:33:23 +0000
committerpho <pho@pkgsrc.org>2021-05-23 06:33:23 +0000
commitccd5ba7a406900c138eccc6760c96e6f2f2a4486 (patch)
tree7936f83222db696266582456dbad02e164c6baab /lang/ghc90
parent1ce47de2147985440242dbb6445175c7480bc4f6 (diff)
downloadpkgsrc-ccd5ba7a406900c138eccc6760c96e6f2f2a4486.tar.gz
Do not include ../../lang/llvm/buildlink3.mk
GHC only needs bin/opt and bin/llc but not libLLVM, so inheriting its dependencies does not make sense.
Diffstat (limited to 'lang/ghc90')
-rw-r--r--lang/ghc90/options.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/ghc90/options.mk b/lang/ghc90/options.mk
index 9367d7e9959..2cf793cd6b5 100644
--- a/lang/ghc90/options.mk
+++ b/lang/ghc90/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2021/05/21 01:45:00 pho Exp $
+# $NetBSD: options.mk,v 1.2 2021/05/23 06:33:23 pho Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ghc
@@ -20,12 +20,12 @@ GHC_LLVM_REQUIRED= yes
.endif
.if !empty(PKG_OPTIONS:Mllvm) || ${GHC_LLVM_REQUIRED} == "yes"
-. include "../../lang/llvm/buildlink3.mk"
-. include "../../lang/llvm/version.mk"
+DEPENDS+= llvm-[0-9]*:../../lang/llvm
CONFIGURE_ENV+= LLC=${PREFIX:Q}/bin/llc
CONFIGURE_ENV+= OPT=${PREFIX:Q}/bin/opt
# Maybe GHC doesn't like this but it's the only option available to us.
+. include "../../lang/llvm/version.mk"
SUBST_CLASSES+= llvm
SUBST_STAGE.llvm= post-extract
SUBST_MESSAGE.llvm= Accept whichever version of LLVM installed via pkgsrc
@@ -35,7 +35,7 @@ SUBST_SED.llvm= -e 's/LlvmVersion=[0-9]*/LlvmVersion=${LLVM_VERSION:C/^([0-9]*)
# Clang is also required on Darwin.
# See compiler/GHC/SysTools/Tasks.hs (runClang).
. if ${OPSYS} == "Darwin"
-. include "../../lang/clang/buildlink3.mk"
+DEPENDS+= clang-[0-9]*:../../lang/clang
CONFIGURE_ENV+= CLANG=${PREFIX:Q}/bin/clang
. else
CONFIGURE_ENV+= CLANG=${FALSE}