serf: On Xcode-only glibtools needs apr headers

Closes Homebrew/homebrew#13998.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
samueljohn 2012-08-06 12:57:03 +02:00 committed by Adam Vandenberg
parent 61d176514a
commit 86b403441a

View file

@ -20,6 +20,8 @@ class Serf < Formula
ENV['CPP'] = "#{ENV.cc} -E"
# Use HB libtool not the one from apr that also has a bad path.
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
system "./configure", "--disable-debug",
"--disable-dependency-tracking",