aboutsummaryrefslogtreecommitdiff
path: root/lang/ghc
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2019-03-21 17:38:10 +0000
committerGleb Popov <arrowd@FreeBSD.org>2019-03-21 17:38:10 +0000
commit7797578a9111e12b0ad3a03a8080be9e98383b51 (patch)
tree7ca16a21e5fdbea82e487eb65d5bb0de47dc23a7 /lang/ghc
parent51ef8bf96e4287870622b357c9ae879a960f11a3 (diff)
downloadports-7797578a9111e12b0ad3a03a8080be9e98383b51.tar.gz
ports-7797578a9111e12b0ad3a03a8080be9e98383b51.zip
bsd.cabal.mk: Add USE_BINUTILS for powerpc64 arch and add support for FLAGS_DEFAULT_${ARCH} variables.
PR: 236346 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Reviewed by: Mikael Urankar <mikael.urankar@gmail.com> Approved by: tcberner (mentor)
Notes
Notes: svn path=/head/; revision=496481
Diffstat (limited to 'lang/ghc')
-rw-r--r--lang/ghc/bsd.cabal.mk3
-rw-r--r--lang/ghc/bsd.cabal.options.mk1
2 files changed, 4 insertions, 0 deletions
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk
index 1968624c65cd..5edc00acff11 100644
--- a/lang/ghc/bsd.cabal.mk
+++ b/lang/ghc/bsd.cabal.mk
@@ -93,6 +93,9 @@ BUILD_DEPENDS+= ghc:lang/ghc
BUILD_DEPENDS+= ghc>=${GHC_VERSION}:lang/ghc
.endif
+.if ${ARCH} == powerpc64
+USE_BINUTILS= yes
+.endif
CONFIGURE_ARGS+= --with-gcc=${CC} --with-ld=${LD} --with-ar=${AR}
diff --git a/lang/ghc/bsd.cabal.options.mk b/lang/ghc/bsd.cabal.options.mk
index 5f49889c6623..a440bb2039da 100644
--- a/lang/ghc/bsd.cabal.options.mk
+++ b/lang/ghc/bsd.cabal.options.mk
@@ -52,6 +52,7 @@ OPTIONS_DEFINE+= ${FLAGS_DEFINE}
OPTIONS_SINGLE+= ${FLAGS_SINGLE}
OPTIONS_MULTI+= ${FLAGS_MULTI}
OPTIONS_DEFAULT+= ${FLAGS_DEFAULT}
+OPTIONS_DEFAULT_${ARCH}+= ${FLAGS_DEFAULT_${ARCH}}
_ALL_FLAGS:= ${FLAGS_DEFINE} ${FLAGS_SINGLE} ${FLAGS_MULTI}
_COMPLETE_FLAGS= ${_ALL_FLAGS}