diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-19 10:33:32 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-28 20:54:50 -0400 |
commit | 39c89862161bf488a6aca9372cbb67690f436ce7 (patch) | |
tree | d8d49472d75df1b185abbc854cb2813ddd196e0d /ghc.mk | |
parent | 318bb17c9d3fbbe68eff706c38eb8e653cea3d83 (diff) | |
download | haskell-39c89862161bf488a6aca9372cbb67690f436ce7.tar.gz |
ghc/mk: don't build gmp packages for BIGNUM_BACKEND=native
Before this change make-based `BIGNUM_BACKEND=native` build was failing as:
```
x86_64-pc-linux-gnu-gcc: error: libraries/ghc-bignum/gmp/objs/*.o: No such file or directory
```
This happens because ghc.mk was pulling in gmp-dependent
ghc-bignum library unconditionally. The change avoid building
ghc-bignum.
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/18437
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -656,7 +656,9 @@ BUILD_DIRS += $(patsubst %, libraries/%, $(PACKAGES_STAGE1)) BUILD_DIRS += $(patsubst %, libraries/%, $(filter-out $(PACKAGES_STAGE1),$(PACKAGES_STAGE0))) endif +ifeq "$(BIGNUM_BACKEND)" "gmp" BUILD_DIRS += libraries/ghc-bignum/gmp +endif BUILD_DIRS += utils/haddock BUILD_DIRS += utils/haddock/doc BUILD_DIRS += compiler |