aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/postgresql.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-20 21:06:38 -0500
committerJack Nagel2012-08-20 21:07:19 -0500
commit15a4e8d359b1b623dac84ea59372e290f4801478 (patch)
treee65070800df0ba1fa9e8b3f44fd3de2691452564 /Library/Formula/postgresql.rb
parentc340f3f54a5719ce105b3cbb08ac7221a3a699cf (diff)
downloadhomebrew-15a4e8d359b1b623dac84ea59372e290f4801478.tar.bz2
postgresql: don't call uuid-config if building without ossp-uuid
Fixes #14314. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/postgresql.rb')
-rw-r--r--Library/Formula/postgresql.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index 6a8cef425..343c43ba1 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -43,9 +43,11 @@ class Postgresql < Formula
args << "--with-perl" unless build.include? 'no-perl'
args << "--enable-dtrace" if build.include? 'enable-dtrace'
- ENV.append 'CFLAGS', `uuid-config --cflags`.strip
- ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
- ENV.append 'LIBS', `uuid-config --libs`.strip
+ unless build.include? 'without-ossp-uuid'
+ ENV.append 'CFLAGS', `uuid-config --cflags`.strip
+ ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
+ ENV.append 'LIBS', `uuid-config --libs`.strip
+ end
if not build.build_32_bit? and MacOS.prefer_64_bit? and not build.include? 'no-python'
args << "ARCHFLAGS='-arch x86_64'"