]> git.kaiwu.me - njs.git/commitdiff
Added missing steps for building with QuickJS to README.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 7 Nov 2024 23:26:39 +0000 (15:26 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 7 Nov 2024 23:52:39 +0000 (15:52 -0800)
README.md

index 855d9c0b738061eaad16be65d7cb854b9687a748..10ef0ba742d1c1068a848a6c700ea3cc29c44ec8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -258,10 +258,12 @@ sudo apt install gcc make
 sudo apt install libpcre3-dev zlib1g-dev libssl-dev libxml2-dev libxslt-dev
 ```
 
-For building with [QuickJS](https://nginx.org/en/docs/njs/engine.html), you will also need to clone the QuickJS repository:
+For building with [QuickJS](https://nginx.org/en/docs/njs/engine.html), you will also need to build the QuickJS library:
 
 ```bash
 git clone https://github.com/bellard/quickjs
+cd quickjs
+CFLAGS='-fPIC' make libquickjs.a
 ```
 
 > [!WARNING]