Clean up use of Boost and PThread libraries.
authorPeter Griess <pgriess@fb.com>
Mon, 23 Sep 2013 16:47:58 +0000 (09:47 -0700)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:07 +0000 (18:46 -0700)
commitde4088dd4906f03251c764adcaa848ed1004bb43
treef9a1c8b62507b12a996685583c201cf656932892
parent28312163ca693f15a13a8693936903b6d235a30c
Clean up use of Boost and PThread libraries.

Summary:
- Use AM_LDFLAGS rather than AM_CXXFLAGS to link against Boost.
- Link against $(BOOST_REGEX_LIB) in addition to other Boost libs.
- Add $(BOOST_LDFLAGS) to AM_LDFLAGS so that we get the library path
that we configured Boost to use.
- Add -lpthread to AM_LDFLAGS rather than ad-hoc '-lpthread' additions
to various library builds.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: oyamauchi@fb.com

FB internal diff: D998504
folly/Makefile.am
folly/configure.ac
folly/test/Makefile.am