summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMattias Wadman <mattias.wadman@gmail.com>2023-07-24 11:34:21 +0200
committerNico Williams <nico@cryptonector.com>2023-07-24 11:26:17 -0500
commit54fef09ac39d6fb003367d65709349c43078405e (patch)
tree7ca75cdbecd2a3f271f395966d5f7ac8ff808050 /README.md
parent4cc99831e44ccda5731b91084f6de3fa52ef9ce8 (diff)
Make maintainer-mode default to disabled
This makes the standard build instructions a bit easier, just ./configure, and also requires less tools installed (bison). Also i think few people probably want to generate the lexer and paser code.
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 5 insertions, 10 deletions
diff --git a/README.md b/README.md
index 52424146..f71577ed 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,8 @@ Source tarball and built executable releases can be found on the
homepage and on the github release page, https://github.com/jqlang/jq/releases.
Docker image is available at https://github.com/jqlang/jq/pkgs/container/jq.
-If you're building directly from the latest git, you'll need flex,
-bison (3.0 or newer), libtool, make, automake, and autoconf installed.
+If you're building directly from the latest git, you'll need libtool, make, automake,
+and autoconf installed.
To get regexp support you'll also need to install Oniguruma or clone it as a
git submodule as per the instructions below. To build, run:
@@ -29,13 +29,8 @@ git submodule as per the instructions below. To build, run:
make -j8
make check
-To build without bison or flex, add `--disable-maintainer-mode` to the
-./configure invocation:
-
- ./configure --with-oniguruma=builtin --disable-maintainer-mode
-
-(Developers must not use `--disable-maintainer-mode`, not when making
-changes to the jq parser and/or lexer.)
+Developers must `--enable-maintainer-mode` when making changes to the
+jq parser and lexer which also requires bison and flex to be installed.
To build a statically linked version of jq, run:
@@ -71,7 +66,7 @@ To compile jq to WebAssembly, install the [Emscripten SDK](https://emscripten.or
git submodule update --init # if building from git to get oniguruma
autoreconf -i # if building from git
- emconfigure ./configure --with-oniguruma=builtin --disable-maintainer-mode
+ emconfigure ./configure --with-oniguruma=builtin
emmake make EXEEXT=.js CFLAGS="-O2" LDFLAGS="-s EXPORTED_RUNTIME_METHODS=['callMain']"