wire-server icon indicating copy to clipboard operation
wire-server copied to clipboard

Problem built on OSX.

Open yihuang opened this issue 8 years ago • 2 comments

In OSX, I need to specify extra flags to build HSOpenSSL:

$ stack install HsOpenSSL-0.11.4.12 \ 
 --extra-lib-dirs=/usr/local/opt/openssl/lib \
 --extra-include-dirs=/usr/local/opt/openssl/include

Then when I run stack build:

HsOpenSSL-0.11.4.12: unregistering (flags changed from ["--extra-include-dirs=/usr/local/opt/openssl/include","--extra-lib-dirs=/usr/local/opt/openssl/lib"] to [])

Is there a way to specify extra flags for extra-deps packages in stack.yaml ?

yihuang avatar Mar 15 '18 11:03 yihuang

@yihuang you can set these flags in your global stack config, in ~/.stack/config.yaml.

You will most likely need these options:

extra-include-dirs:
- /usr/local/opt/openssl/include
- /usr/local/opt/icu4c/include

extra-lib-dirs:
- /usr/local/opt/openssl/lib
- /usr/local/opt/icu4c/lib

elverkilde avatar Mar 15 '18 12:03 elverkilde

Thank you very much.

yihuang avatar Mar 15 '18 13:03 yihuang