diff options
author | pho <pho@pkgsrc.org> | 2015-02-07 09:35:55 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2015-02-07 09:35:55 +0000 |
commit | fde3766f7b41a295d77751d7f99ed893ecf60190 (patch) | |
tree | d0cd7711f164190c0b47b3c19ba1c818bd459140 /lang/ghc7 | |
parent | 15e31346ada12e951df693744680326f17c8e1db (diff) | |
download | pkgsrc-fde3766f7b41a295d77751d7f99ed893ecf60190.tar.gz |
Bootkit for FreeBSD needs to use pkgsrc libiconv
Diffstat (limited to 'lang/ghc7')
-rw-r--r-- | lang/ghc7/bootstrap.mk | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lang/ghc7/bootstrap.mk b/lang/ghc7/bootstrap.mk index 5e06fc393ca..f88580384c0 100644 --- a/lang/ghc7/bootstrap.mk +++ b/lang/ghc7/bootstrap.mk @@ -1,7 +1,6 @@ -# $NetBSD: bootstrap.mk,v 1.16 2015/02/06 06:57:13 pho Exp $ +# $NetBSD: bootstrap.mk,v 1.17 2015/02/07 09:35:55 pho Exp $ # ----------------------------------------------------------------------------- -# Select a bindist of bootstrapping compiler based on a per-platform -# basis. +# Select a bindist of bootstrapping compiler on a per-platform basis. # # BOOT_ARCHIVE # This variable is set to the name of compressed archive file of a @@ -40,6 +39,16 @@ BOOT_ARCHIVE:= ${PKGNAME}-boot-x86_64-unknown-solaris2.tar.xz PKG_FAIL_REASON+= "internal error: unsupported platform" .endif +# FreeBSD < 10 surprisingly doesn't have a native iconv so we need to +# use pkgsrc libiconv for this OPSYS. And if a bootkit depends on +# pkgsrc libiconv, the "normal" build must do the same because GHC +# always needs to link executables with libiconv, just like libgmp +# when integer-gmp is used. For this reason it might be desirable to +# create two separate bootkits, one for < 10 and another for >= 10. +.if ${OPSYS} == "FreeBSD" +USE_BUILTIN.iconv= no +.endif + # current bootstrap binary kit for SmartOS is built with ncurses5 .if !empty(MACHINE_PLATFORM:MSunOS-5.11-*) && !empty(OS_VARIANT:U:MSmartOS) BUILD_DEPENDS+= ncurses>=5.0:../../devel/ncurses |