From 911566db11bc79ddca38e671aefeb68f71a7666c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 15 Nov 2013 22:09:56 -0600 Subject: psftools: fix buggy configure script under superenv --- Library/Formula/psftools.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Library/Formula/psftools.rb b/Library/Formula/psftools.rb index 1336099e6..a14513b61 100644 --- a/Library/Formula/psftools.rb +++ b/Library/Formula/psftools.rb @@ -11,9 +11,19 @@ class Psftools < Formula sha1 '4e8b2e7686532a25c18cacaeb90a8f0ed57a30c6' def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + # This very old configure script does not anticipate that passing -g + # will result in .dSYM directories being created. -g is only passed + # when CFLAGS is unset (superenv), so let's set it to the empty string + cflags = ENV['CFLAGS'] + ENV['CFLAGS'] = '' + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}" + + ENV['CFLAGS'] = cflags + system "make install" end -- cgit v1.2.3