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

Improve build environment for GoSodium #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sean-
Copy link

@sean- sean- commented Jan 4, 2015

This pull request removes the #cgo directives that hard coded /home/action and relies on the environment variables CGO_CPPFLAGS and CGO_LDFLAGS for building. The README was updated with a copy/paste-able example.

Sean Chittenden added 3 commits January 3, 2015 22:34
Instead, rely on environment variables when compiling libsodium when not
found in the default location.  For example:

$ env \
    C_INCLUDE_PATH=/opt/local/include \
    LIBRARY_PATH=/opt/local/lib \
    CGO_LDFLAGS='-L/opt/local/lib -lsodium' \
  go get github.com/jasonmccampbell/GoSodium
Flesh out the example to explicitly include CGO_CPPFLAGS and CGO_LDFLAGS so future users can just copy/paste and twiddle away.
@neuegram
Copy link

neuegram commented Jan 7, 2015

Great work! I was actually planning on doing this with the unit tests, but high school :(

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

Successfully merging this pull request may close these issues.

2 participants