Fix for folly open source build on Ubuntu 12.04
authorAnton Likhtarov <alikhtarov@fb.com>
Wed, 25 Jun 2014 01:52:54 +0000 (18:52 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Thu, 26 Jun 2014 02:27:43 +0000 (19:27 -0700)
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

folly/configure.ac

index 2b973ac796cd9f0fa864a6cf5b5bd2cfbd7d3108..b2bbe3c0412cc343accfb74ac7a25e75c1a0ae04 100644 (file)
@@ -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.])