From: Anton Likhtarov Date: Wed, 25 Jun 2014 01:52:54 +0000 (-0700) Subject: Fix for folly open source build on Ubuntu 12.04 X-Git-Tag: v0.22.0~500 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6dff66ff2150a102f1594ac8a92f99e5bb1186e4;p=folly.git Fix for folly open source build on Ubuntu 12.04 Summary: On 12.04, there's both /usr/lib/libiberty.a and /usr/lib/libiberty_pic.a, and _pic is the one we want to build a Folly shared library. Test Plan: build on Ubuntu 12.04 Reviewed By: meyering@fb.com FB internal diff: D1402194 --- diff --git a/folly/configure.ac b/folly/configure.ac index 2b973ac7..b2bbe3c0 100644 --- a/folly/configure.ac +++ b/folly/configure.ac @@ -160,7 +160,7 @@ AC_LINK_IFELSE( AC_DEFINE([HAVE_WEAK_SYMBOLS], [1], [Define to 1 if the linker supports weak symbols.])]) -AC_SEARCH_LIBS([cplus_demangle_v3_callback], [iberty]) +AC_SEARCH_LIBS([cplus_demangle_v3_callback], [iberty_pic iberty]) if test "$ac_cv_search_cplus_demangle_v3_callback" != "no" ; then AC_DEFINE([HAVE_CPLUS_DEMANGLE_V3_CALLBACK], [1], [Define to 1 if we have cplus_demangle_v3_callback.])