diff options
| author | Jack Nagel | 2013-11-15 22:09:56 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-15 22:27:42 -0600 |
| commit | 911566db11bc79ddca38e671aefeb68f71a7666c (patch) | |
| tree | c02cf57040321ca3d524c8a0098536cd47a06582 /Library/Formula/psftools.rb | |
| parent | c46a70b81b493d34fdaf8fc9d637290ae02a1c0a (diff) | |
| download | homebrew-911566db11bc79ddca38e671aefeb68f71a7666c.tar.bz2 | |
psftools: fix buggy configure script under superenv
Diffstat (limited to 'Library/Formula/psftools.rb')
| -rw-r--r-- | Library/Formula/psftools.rb | 12 |
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 |
