Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 39fa57e

Browse files
committed
Building with perl breaks on Yosemite
1 parent be98dd1 commit 39fa57e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

files/brews/postgresql.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ def install
5151

5252
args << "--with-ossp-uuid" unless ARGV.include? '--no-ossp-uuid'
5353
args << "--with-python" unless ARGV.include? '--no-python'
54-
args << "--with-perl" unless ARGV.include? '--no-perl'
5554
args << "--enable-dtrace" if ARGV.include? '--enable-dtrace'
5655

56+
if MacOS.version < :yosemite
57+
args << "--with-perl" unless ARGV.include? '--no-perl'
58+
end
59+
5760
ENV.append 'CFLAGS', `uuid-config --cflags`.strip
5861
ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
5962
ENV.append 'LIBS', `uuid-config --libs`.strip
@@ -111,7 +114,7 @@ def check_python_arch
111114
-override python_libspec = -framework Python
112115
-override python_additional_libs =
113116
endif
114-
117+
115118
# If we don't have a shared library and the platform doesn't allow it
116119
--- a/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:34:53.000000000 -0700
117120
+++ b/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:35:03.000000000 -0700

0 commit comments

Comments
 (0)