Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem built on OSX. #241

Closed
yihuang opened this issue Mar 15, 2018 · 2 comments
Closed

Problem built on OSX. #241

yihuang opened this issue Mar 15, 2018 · 2 comments

Comments

@yihuang
Copy link

yihuang commented Mar 15, 2018

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 ?

@elverkilde
Copy link
Contributor

@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

@yihuang
Copy link
Author

yihuang commented Mar 15, 2018

Thank you very much.

@yihuang yihuang closed this as completed Mar 15, 2018
smatting pushed a commit that referenced this issue Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants