[open-ils-commits] r17052 - trunk/Open-ILS/src/extras (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jul 28 22:56:50 EDT 2010


Author: dbs
Date: 2010-07-28 22:56:48 -0400 (Wed, 28 Jul 2010)
New Revision: 17052

Modified:
   trunk/Open-ILS/src/extras/Makefile.install
Log:
Build a threadsafe libjs so that JavaScript::SpiderMonkey can be threadsafe

Thomas Berezansky <tsbere at mvlc.org> reported problems building
JavaScript::SpiderMonkey on 64-bit Ubuntu and offered some
patches to build it without -JS_THREADSAFE. The real problem, however,
was that libjs was not itself being built with the JS_THREADSAFE
option.

Enabling the JS_THREADSAFE option pulls in the requirement of
the nspr4-dev package on Ubuntu and Debian.

Tested on 64-bit Ubuntu Lucid and 64-bit Debian Lenny. 64-bit Fedora 13
worked previously because it uses the packaged version of libjs - which
was already built with the JS_THREADSAFE option.


Modified: trunk/Open-ILS/src/extras/Makefile.install
===================================================================
--- trunk/Open-ILS/src/extras/Makefile.install	2010-07-29 00:55:52 UTC (rev 17051)
+++ trunk/Open-ILS/src/extras/Makefile.install	2010-07-29 02:56:48 UTC (rev 17052)
@@ -88,6 +88,7 @@
 	libmarc-record-perl\
 	libncurses5-dev\
 	libnet-server-perl\
+	libnspr4-dev\
 	libole-storage-lite-perl\
 	libpq-dev\
 	libreadline5-dev\
@@ -307,7 +308,7 @@
 install_libjs: 
 	if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
 	tar -zxf $(LIBJS).tar.gz
-	cd js/src/ && make -f Makefile.ref
+	cd js/src/ && JS_THREADSAFE=true JS_DIST=/usr make -f Makefile.ref
 	mkdir -p $(JS_INSTALL_PREFIX)/include/js/
 	cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
 	cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/



More information about the open-ils-commits mailing list