/[gentoo-x86]/eclass/haskell-cabal.eclass
Gentoo

Diff of /eclass/haskell-cabal.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.22
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.21 2010/08/07 12:06:27 kolmodin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.22 2010/09/12 07:37:09 slyfox Exp $
4# 4#
5# Original authors: Andres Loeh <kosmikus@gentoo.org> 5# Original authors: Andres Loeh <kosmikus@gentoo.org>
6# Duncan Coutts <dcoutts@gentoo.org> 6# Duncan Coutts <dcoutts@gentoo.org>
7# Maintained by: Haskell herd <haskell@gentoo.org> 7# Maintained by: Haskell herd <haskell@gentoo.org>
8# 8#
346 346
347haskell-cabal_src_configure() { 347haskell-cabal_src_configure() {
348 pushd "${S}" > /dev/null 348 pushd "${S}" > /dev/null
349 349
350 cabal-bootstrap 350 cabal-bootstrap
351
352 ghc_flags=""
353 # currently cabal does not respect CFLAGS and LDFLAGS on it's own (bug #333217)
354 # so translate LDFLAGS to ghc parameters (without filtering)
355 for flag in $LDFLAGS; do ghc_flags="${ghc_flags} --ghc-option=-optl$flag"; done
356
351 cabal-configure "$@" 357 cabal-configure $ghc_flags "$@"
352 358
353 popd > /dev/null 359 popd > /dev/null
354} 360}
355 361
356# exported function: nice alias 362# exported function: nice alias

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20