aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-10-15 23:52:00 -0700
committerMisty De Meo2013-10-16 00:01:38 -0700
commit5a575eecdcc20aa10e4e7618426adbfbf7123c0c (patch)
tree86769c6c8c80d90b60ad3fa2139c87b0ce260fe1 /Library/Formula
parent1f13103fdea2e06ce25e025fdb351d27869a59bd (diff)
downloadhomebrew-5a575eecdcc20aa10e4e7618426adbfbf7123c0c.tar.bz2
neon: disable -no-cpp-precomp in configure
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/neon.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/neon.rb b/Library/Formula/neon.rb
index bf386c429..65acb6589 100644
--- a/Library/Formula/neon.rb
+++ b/Library/Formula/neon.rb
@@ -14,6 +14,12 @@ class Neon < Formula
depends_on 'pkg-config' => :build
depends_on 'openssl' if build.with? 'brewed-openssl'
+ # Configure switch unconditionally adds the -no-cpp-precomp switch
+ # to CPPFLAGS, which is an obsolete Apple-only switch that breaks
+ # builds under non-Apple compilers and which may or may not do anything
+ # anymore.
+ def patches; DATA; end
+
def install
ENV.universal_binary if build.universal?
ENV.enable_warnings
@@ -32,3 +38,17 @@ class Neon < Formula
system "make install"
end
end
+
+__END__
+diff --git a/configure b/configure
+index b0a7908..a0f2ceb 100755
+--- a/configure
++++ b/configure
+@@ -4224,7 +4224,6 @@ fi
+ $as_echo "$ne_cv_os_uname" >&6; }
+
+ if test "$ne_cv_os_uname" = "Darwin"; then
+- CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
+ LDFLAGS="$LDFLAGS -flat_namespace"
+ # poll has various issues in various Darwin releases
+ if test x${ac_cv_func_poll+set} != xset; then