From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95674139085 for ; Thu, 22 Dec 2016 23:01:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A372E0C40; Thu, 22 Dec 2016 23:01:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53182E0C40 for ; Thu, 22 Dec 2016 23:01:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5A26A341117 for ; Thu, 22 Dec 2016 23:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC1B024DF for ; Thu, 22 Dec 2016 23:01:16 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1482447671.e0cea5be7aaa1e47011de12743ca500f3bda4b8a.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/haskell-cabal.eclass X-VCS-Directories: eclass/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: e0cea5be7aaa1e47011de12743ca500f3bda4b8a X-VCS-Branch: master Date: Thu, 22 Dec 2016 23:01:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4f7bf1fa-4fa7-4f82-a2e8-5a82b2e6d386 X-Archives-Hash: f1abe948681a3326ce12e28f15377d49 commit: e0cea5be7aaa1e47011de12743ca500f3bda4b8a Author: Sergei Trofimovich gentoo org> AuthorDate: Thu Dec 22 22:57:09 2016 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Thu Dec 22 23:01:11 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cea5be 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 gentoo.org> eclass/haskell-cabal.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index f5d5b85..0f43464 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)