Build a threadsafe libjs so that JavaScript::SpiderMonkey can be threadsafe
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Jul 2010 02:56:48 +0000 (02:56 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Jul 2010 02:56:48 +0000 (02:56 +0000)
Thomas Berezansky <tsbere@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.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17052 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/Makefile.install

index 7a4da60..7f2ef09 100644 (file)
@@ -88,6 +88,7 @@ DEBS =  \
        libmarc-record-perl\
        libncurses5-dev\
        libnet-server-perl\
+       libnspr4-dev\
        libole-storage-lite-perl\
        libpq-dev\
        libreadline5-dev\
@@ -307,7 +308,7 @@ install_js_sm: install_libjs install_spidermonkey
 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/