serf: On Xcode-only glibtools needs apr headers

Closes Homebrew/homebrew#13998.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
samueljohn 2012-08-06 12:57:03 +02:00 committed by Adam Vandenberg
parent 61d176514a
commit 86b403441a
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ class Serf < Formula
ENV['CPP'] = "#{ENV.cc} -E" ENV['CPP'] = "#{ENV.cc} -E"
# Use HB libtool not the one from apr that also has a bad path. # Use HB libtool not the one from apr that also has a bad path.
ENV['APR_LIBTOOL'] = 'glibtool' ENV['APR_LIBTOOL'] = 'glibtool'
# Especially for Xcode-only, the apr hearders are needed by glibtool
ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/usr/include/apr-1"
end end
system "./configure", "--disable-debug", system "./configure", "--disable-debug",
"--disable-dependency-tracking", "--disable-dependency-tracking",