Remove unneeded parts of build script
authorPhilip Jameson <pjameson@fb.com>
Tue, 12 Sep 2017 18:49:14 +0000 (11:49 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 12 Sep 2017 18:50:12 +0000 (11:50 -0700)
Summary: Remove an unneeded autoconf flag, as it causes the build to fail on missing boost-context

Reviewed By: yfeldblum

Differential Revision: D5815646

fbshipit-source-id: cb6544593de9fbf8248506b09c56412b4635b30c

folly/build/buck_run_autoconf.sh

index c6a57769e01e8b73f9de91864eeae4dd47c1c7b3..2e9efb0ef46c666d50dfe2333f55059d48dff5c0 100644 (file)
@@ -12,23 +12,10 @@ get_ldflags() {
   done
 }
 
-get_boost_libdirs() {
-  # autoconf's boost detection seems to require a path to boost libs
-  # if they're not in the system directories
-  for i in "$@"; do
-    echo "$i" | perl -n -e 'print if s,(.*)/libboost_.*\.(so|dylib|dll).*,\1,'
-  done
-}
-
 # This is an extra linker flag that buck appends on OSX that's not valid
 # This probably requires a patch to buck
 LDFLAGS=$(get_ldflags "$@" | uniq | tr '\n' ' ' | perl -pe 's;-Xlinker \@executable_path\S*;;g')
 
-boost_libdir=$(get_boost_libdirs "$@"| head -n 1)
-if [ ! -z "$boost_libdir" ]; then
-  BOOST_FLAG="--with-boost-libdir=$boost_libdir"
-fi
-
 export LDFLAGS
 export BOOST_LDFLAGS="$LDFLAGS"
 export BOOST_CPPFLAGS="$CPPFLAGS"