Add a patch to let ffx3.6 build _and_ run on sparc64, inspired from
similar fixes in freebsd/pkgsrc. Ffx 3.6 will soon replace Ffx 3.0 in www/mozilla-firefox. https://bugzilla.mozilla.org/show_bug.cgi?id=550271
This commit is contained in:
parent
deef8e9575
commit
c57bb32d1c
19
www/firefox36/patches/patch-js_src_jslock_cpp
Normal file
19
www/firefox36/patches/patch-js_src_jslock_cpp
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-js_src_jslock_cpp,v 1.1 2010/04/24 18:20:33 landry Exp $
|
||||
Fix for infinite loop in js binary during build
|
||||
cf pkgsrc/devel/xulrunner/patches/patch-bb
|
||||
http://lists.freebsd.org/pipermail/freebsd-gecko/2010-January/000640.html
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=550271
|
||||
--- js/src/jslock.cpp.orig Sat Apr 24 16:47:57 2010
|
||||
+++ js/src/jslock.cpp Sat Apr 24 16:52:44 2010
|
||||
@@ -161,7 +161,11 @@ NativeCompareAndSwap(jsword *w, jsword ov, jsword nv)
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"stbar\n"
|
||||
+#if defined (__sparc64__)
|
||||
+ "casx [%1],%2,%3\n"
|
||||
+#else
|
||||
"cas [%1],%2,%3\n"
|
||||
+#endif
|
||||
"cmp %2,%3\n"
|
||||
"be,a 1f\n"
|
||||
"mov 1,%0\n"
|
Loading…
x
Reference in New Issue
Block a user