GNOME Bugzilla – Bug 655479
gjs needs a non-automagic way of choosing the javascript package to build against
Last modified: 2011-07-28 20:34:35 UTC
gjs-1.29.15 picks the javascript package to build against automagically: it looks for mozjs185, and if it's not found, looks for mozilla-js. While this behavior is certainly user-friendly, it makes it impossible to build a gjs package that links to xulrunner on a machine that happens to have spidermonkey installed.
Created attachment 192799 [details] [review] Make choice of javascript package non-automagic This patch adds a --with-js-package configure flag to allow selecting which javascript package to build against, e.g. to force building against xulrunner on a system that happens to have spidermonkey installed. By default, the behavior is the same as before (first check for mozjs185, then for mozilla-js).
Review of attachment 192799 [details] [review]: Thanks so much for the patch, Alexandre! I just tweaked your commit message to follow our standard bugzilla linking style.
Attachment 192799 [details] pushed as 2b16f01 - Make choice of javascript package non-automagic