Fix the pkg-config filter
authorMichael Steinert <mike.steinert@gmail.com>
Wed, 15 Mar 2017 16:23:02 +0000 (09:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Mar 2017 16:41:59 +0000 (09:41 -0700)
commit58d67ca5d73517414666cdf65e5e788f07e5a233
tree4b6b8427d14b45dffb6938891b8976dd61777458
parenta5093cb5789077f87204ddf9b0c7c9f261ea9e6c
Fix the pkg-config filter

Summary:
I encountered a situation where "pkg-config --libs openssl" included
some linker flags, i.e.

    $ pkg-config --libs openssl
    -Wl,-z,relro -lssl -lcrypto -ldl -lz

This resulted in these linker flags being passed to sed. This change
filters out the linker flags from the pkg-config output.
Closes https://github.com/facebook/folly/pull/559

Reviewed By: pixelb

Differential Revision: D4700120

Pulled By: yfeldblum

fbshipit-source-id: 530d524caf965919418d19a1df53d2b418f67717
folly/m4/fb_filter_pkg_libs.m4