Make folly pkg-config more usable on OS X
authorJacob Bower <jbower@fb.com>
Thu, 22 Dec 2016 06:10:37 +0000 (22:10 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Dec 2016 06:18:35 +0000 (22:18 -0800)
commit6536cf2911d19c2383ee570704e49689f65db728
treef448c69d7f84638dea3f47eab29ece116ddaf269
parented6a485097887a967c6ed9c21a83a0bed231a008
Make folly pkg-config more usable on OS X

Summary:
As part of open-sourcing the Watchman C++ client I'm adding an (optional) dependency in Watchman to Folly. When I tried to build this client with Folly on OS X I ran into some problems using the libfolly pkg-config file. This diff addresses these issues:

1. When using `build/bootstrap-osx-homebrew.sh`, the compile config for gflags and OpenSSL are overriden. If present, these custom flags will now be propagated to `libfolly.pc`.
2. I changed the the package requirements in `libfolly.pc` from `Requires.private` to just `Requires`.

Both of these changes are needed as much of Folly's implementation is in header files. As such, consumers of libfolly need to use the same library/include paths when building.

Reviewed By: yfeldblum

Differential Revision: D4332720

fbshipit-source-id: 6a051ae318ac10bdeb4dc383a16de81f1c0327bb
folly/build/bootstrap-osx-homebrew.sh
folly/configure.ac
folly/libfolly.pc.in