aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nspr.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-07 13:02:40 -0700
committerAdam Vandenberg2010-07-07 13:02:40 -0700
commit2582bfc8a4adb5e8d98d53e3f33d8fbca22cdc31 (patch)
tree9f7ef0782ca899df991d010c09d91cad2534ac79 /Library/Formula/nspr.rb
parent32c3ee3a384ee60c1e06ba5bcbadc8167e17a21e (diff)
downloadhomebrew-2582bfc8a4adb5e8d98d53e3f33d8fbca22cdc31.tar.bz2
Fix nspr on 32-bit machines.
Diffstat (limited to 'Library/Formula/nspr.rb')
-rw-r--r--Library/Formula/nspr.rb8
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"