aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/psftools.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-15 22:09:56 -0600
committerJack Nagel2013-11-15 22:27:42 -0600
commit911566db11bc79ddca38e671aefeb68f71a7666c (patch)
treec02cf57040321ca3d524c8a0098536cd47a06582 /Library/Formula/psftools.rb
parentc46a70b81b493d34fdaf8fc9d637290ae02a1c0a (diff)
downloadhomebrew-911566db11bc79ddca38e671aefeb68f71a7666c.tar.bz2
psftools: fix buggy configure script under superenv
Diffstat (limited to 'Library/Formula/psftools.rb')
-rw-r--r--Library/Formula/psftools.rb12
1 files changed, 11 insertions, 1 deletions
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