on master help sign in
Merge pull request #2867 from jfdm/saner-stack-defaults
b3db250Jan de Muijnck-Hughes
INSTALL.md+13−7
@@ -84,10 +84,16 @@ version of GHC.
84
84
85### `libGMP` and `libFFI`
85### `libGMP` and `libFFI`
86
86
87+By default the stack configuration in `stack.yaml` will build with
87−To build with support for `libGMP` and `libFFI` you need to pass build
88+support for `libGMP` and `libFFI`. To turn this support off, the
88−commands for the Idris library either from the command line:
89+option flags needs to be fully commented out.
89−
90+
90−* `stack build --flag idris:GMP --flag idris:FFI`
91+There have been reports in the past over building Idris on Mac OS X,
91−
92+using stack, and linking to a HomeBrew installation of `libFFI`. The
92−or un-comment the options `idris:GMP` and `idris:FFI` and their
93+build has failed to find the correct `libFFI` installation. If you
93−dependencies in the `stack.yaml` file.
94+encounter this then the fix is to augment the `PKG_CONFIG_PATH` when
95+running the stack build:
96+
97+```
98+PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig stack build
99+```
stack.yaml+6−6
@@ -2,12 +2,12 @@ resolver: lts-3.16
2packages:
2packages:
3- '.'
3- '.'
4flags:
4flags:
5− # idris:
5+ idris:
6− # FFI: true
6+ FFI: true
7− # GMP: True
7+ GMP: True
8− # curses: True
8+ curses: True
9extra-deps:
9extra-deps:
10- annotated-wl-pprint-0.7.0
10- annotated-wl-pprint-0.7.0
11- cheapskate-0.1.0.4
11- cheapskate-0.1.0.4
12−# - hscurses-1.4.2.0
12+- hscurses-1.4.2.0
13−# - libffi-0.1
13+- libffi-0.1