{"action":"created","issue":{"url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/11","labels_url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/11/comments","events_url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/11/events","html_url":"https://github.com/alexcrichton/pkg-config-rs/issues/11","id":60716196,"number":11,"title":"Including system library paths makes it difficult to overide library versions","user":{"login":"hugoduncan","id":54043,"avatar_url":"https://avatars.githubusercontent.com/u/54043?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoduncan","html_url":"https://github.com/hugoduncan","followers_url":"https://api.github.com/users/hugoduncan/followers","following_url":"https://api.github.com/users/hugoduncan/following{/other_user}","gists_url":"https://api.github.com/users/hugoduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoduncan/subscriptions","organizations_url":"https://api.github.com/users/hugoduncan/orgs","repos_url":"https://api.github.com/users/hugoduncan/repos","events_url":"https://api.github.com/users/hugoduncan/events{/privacy}","received_events_url":"https://api.github.com/users/hugoduncan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-11T19:33:16Z","updated_at":"2015-03-23T16:35:32Z","closed_at":null,"body":"At present, `Config::find` returns system library paths.  This can make it difficult to override library versions.\r\n\r\nThe motiviating example is using rust-openssl with ssh2-rs on OS X.  On Mac, openssl requires a non-system version of openssl for TLS support, which can successfuly be provided by homebrew, for example.  ssh2-rs depends on libz-rs, which pkg-config finds as `-L /usr/lib`.  This library path gets added before the openssl library path, resulting in the system (older) openssl libraries being used, and the linker failing."},"comment":{"url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/comments/85083484","html_url":"https://github.com/alexcrichton/pkg-config-rs/issues/11#issuecomment-85083484","issue_url":"https://api.github.com/repos/alexcrichton/pkg-config-rs/issues/11","id":85083484,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T16:35:32Z","updated_at":"2015-03-23T16:35:32Z","body":"We generally just shell out to `ld`, although I'm not sure if we can query `ld` for search paths."}}