aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/serf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/serf.rb b/Library/Formula/serf.rb
index 62bfed42c..ac3fcfb8f 100644
--- a/Library/Formula/serf.rb
+++ b/Library/Formula/serf.rb
@@ -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",