Skip to content

Document DEP_OPENSSL_INCLUDE #453

Closed
Closed

Description

@santagada

servo is using rust_openssl and they think that only setting DEP_OPENSSL_INCLUDE fixes the lib inclusion in osx 10.11 (you can see in: https://github.com/servo/servo/blob/master/README.md#os-x) to which I sent a pull-request, but I had to set three env vars to get servo to link against brew installed openssl: https://github.com/servo/servo/pull/13225/files

Can the docs be improved or this variable be removed (in preference of the OPENSSL_* ones)

Activity

  1. sfackler commented on Sep 11, 2016

    @sfackler
    Collaborator

    DEP_OPENSSL_INCLUDE is set by cargo based on the output of openssl-sys's build script. It shouldn't be adjusted manually.

  2. santagada commented on Sep 12, 2016

    @santagada
    Author

    Ok, so openssl-sys pass data to openssl? In servo at least it builds openssl first and without this change it doesn't find the openssl headers, then it build openssl-sys and that needs the two other vars.

    Sorry I'm very new on rust but I really want to get this sorted.

  3. sfackler commented on Sep 12, 2016

    @sfackler
    Collaborator

    openssl-sys is always built before openssl. If you've adjusted which locations you want openssl-sys to look for openssl (via e.g. OPENSSL_INCLUDE_DIR), you'll need to "cargo clean" to trigger openssl-sys to build again.

  4. santagada commented on Sep 13, 2016

    @santagada
    Author

    ok I will try that, thanks

  5. santagada commented on Sep 13, 2016

    @santagada
    Author

    thanks that fixes it

  6. added a commit that references this issue on Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions