diff options
| author | Adam Vandenberg | 2010-07-07 13:02:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-07 13:02:40 -0700 |
| commit | 2582bfc8a4adb5e8d98d53e3f33d8fbca22cdc31 (patch) | |
| tree | 9f7ef0782ca899df991d010c09d91cad2534ac79 /Library | |
| parent | 32c3ee3a384ee60c1e06ba5bcbadc8167e17a21e (diff) | |
| download | homebrew-2582bfc8a4adb5e8d98d53e3f33d8fbca22cdc31.tar.bz2 | |
Fix nspr on 32-bit machines.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nspr.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb index ae1c2d405..33a1c8605 100644 --- a/Library/Formula/nspr.rb +++ b/Library/Formula/nspr.rb @@ -8,16 +8,16 @@ class Nspr <Formula def install ENV.deparallelize Dir.chdir "mozilla/nsprpub" do - # Fixes a bug with linking against CoreFoundation. + # Fixes a bug with linking against CoreFoundation, needed to work with SpiderMonkey # See: http://openradar.appspot.com/7209349 - # Needed to work with SpiderMonkey - inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", "" + target_frameworks = Hardware.is_32_bit? ? "-framework Carbon" : "" + inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", target_frameworks conf = ["--prefix=#{prefix}", "--disable-debug", "--enable-strip", "--enable-optimize"] conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 system "./configure", *conf - # Remove the broken *(for anyone but FF) install_name + # Remove the broken (for anyone but Firefox) install_name inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", "" system "make" |
