From 39fa57e149c66e77049f79277d2ba79ed0c5a60f Mon Sep 17 00:00:00 2001 From: David Goodlad Date: Tue, 9 Sep 2014 12:56:46 -0700 Subject: [PATCH] Building with perl breaks on Yosemite --- files/brews/postgresql.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/brews/postgresql.rb b/files/brews/postgresql.rb index 3102e72..0be1cb8 100644 --- a/files/brews/postgresql.rb +++ b/files/brews/postgresql.rb @@ -51,9 +51,12 @@ def install args << "--with-ossp-uuid" unless ARGV.include? '--no-ossp-uuid' args << "--with-python" unless ARGV.include? '--no-python' - args << "--with-perl" unless ARGV.include? '--no-perl' args << "--enable-dtrace" if ARGV.include? '--enable-dtrace' + if MacOS.version < :yosemite + args << "--with-perl" unless ARGV.include? '--no-perl' + end + ENV.append 'CFLAGS', `uuid-config --cflags`.strip ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LIBS', `uuid-config --libs`.strip @@ -111,7 +114,7 @@ def check_python_arch -override python_libspec = -framework Python -override python_additional_libs = endif - + # If we don't have a shared library and the platform doesn't allow it --- a/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:34:53.000000000 -0700 +++ b/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:35:03.000000000 -0700