diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2016-12-22 22:57:09 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2016-12-22 23:01:11 +0000 |
commit | e0cea5be7aaa1e47011de12743ca500f3bda4b8a (patch) | |
tree | 75a536e6d7a1b7ad2a50b60ef85cd8d5f593153e /eclass/haskell-cabal.eclass | |
parent | app-arch/tar: Removed old. (diff) | |
download | gentoo-e0cea5be7aaa1e47011de12743ca500f3bda4b8a.tar.gz gentoo-e0cea5be7aaa1e47011de12743ca500f3bda4b8a.tar.bz2 gentoo-e0cea5be7aaa1e47011de12743ca500f3bda4b8a.zip |
haskell-cabal.eclass: respect AR option
That allows us to build not-so-broken static libraries
for LTO users. Tuhs usually have environment like:
CFLAGS=-flto
AR=${CHOST}-gcc-ar
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/haskell-cabal.eclass')
-rw-r--r-- | eclass/haskell-cabal.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index f5d5b85100eb..0f434645822c 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.eclass @@ -31,7 +31,7 @@ # not pull upper versions # test-suite -- add support for cabal test-suites (introduced in Cabal-1.8) -inherit eutils ghc-package multilib +inherit eutils ghc-package multilib toolchain-funcs # @ECLASS-VARIABLE: CABAL_EXTRA_CONFIGURE_FLAGS # @DESCRIPTION: @@ -330,6 +330,9 @@ cabal-configure() { cabalconf+=(--ghc-option="$option") done + # toolchain + cabalconf+=(--with-ar="$(tc-getAR)") + # Building GHCi libs on ppc64 causes "TOC overflow". if use ppc64; then cabalconf+=(--disable-library-for-ghci) |