diff options
author | pho <pho> | 2015-02-07 09:35:55 +0000 |
---|---|---|
committer | pho <pho> | 2015-02-07 09:35:55 +0000 |
commit | 22b3d412ced9ffcfeda7b8cd5f1f5a3fbddf46e8 (patch) | |
tree | d0cd7711f164190c0b47b3c19ba1c818bd459140 /lang | |
parent | 1336216238b4e1ed76b6eba6e334bb3d3977c723 (diff) | |
download | pkgsrc-22b3d412ced9ffcfeda7b8cd5f1f5a3fbddf46e8.tar.gz |
Bootkit for FreeBSD needs to use pkgsrc libiconv
Diffstat (limited to 'lang')
-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 |