mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 06:20:02 -04:00
support http/2
This commit is contained in:
parent
8bcfc2157c
commit
baab0aea8f
6 changed files with 36 additions and 3 deletions
24
client/tools/nghttp2.sh
Executable file
24
client/tools/nghttp2.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
#compile nghttp2 for use with emscripten
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
CORE_COUNT=$(nproc --all)
|
||||
PREFIX=$(realpath build/nghttp2-wasm)
|
||||
|
||||
cd build
|
||||
rm -rf nghttp2
|
||||
git clone -b master --depth=1 https://github.com/nghttp2/nghttp2
|
||||
cd nghttp2
|
||||
|
||||
rm -rf $PREFIX
|
||||
mkdir -p $PREFIX
|
||||
|
||||
autoreconf -fi
|
||||
emconfigure ./configure --host i686-linux --enable-static --disable-shared --enable-lib-only --prefix=$PREFIX
|
||||
emmake make -j$CORE_COUNT
|
||||
make install
|
||||
|
||||
cd ../../
|
Loading…
Add table
Add a link
Reference in a new issue