From 1c4e6ad35211e7d0b1da00e6f2f2d94ba791a60b Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 29 Jul 2010 02:56:48 +0000 Subject: [PATCH] Build a threadsafe libjs so that JavaScript::SpiderMonkey can be threadsafe Thomas Berezansky 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 7a4da60bf..7f2ef0904 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -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/ -- 2.11.0