Install luajit
This commit is contained in:
parent
a15cf487d7
commit
f1e1c3b133
1 changed files with 11 additions and 0 deletions
|
@ -162,12 +162,23 @@ get_src d4a9ed0d2405f41eb0178462b398afde8599c5115dcc1ff8f60e2f34a41a4c21 \
|
|||
get_src 92fd006d5ca3b3266847d33410eb280122a7f6c06334715f87acce064188a02e \
|
||||
"https://github.com/openresty/lua-resty-core/archive/v0.1.14rc1.tar.gz"
|
||||
|
||||
get_src 1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3 \
|
||||
"http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz"
|
||||
|
||||
|
||||
#https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/
|
||||
curl -sSL -o nginx__dynamic_tls_records.patch https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/nginx__1.11.5_dynamic_tls_records.patch
|
||||
|
||||
export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 0))
|
||||
|
||||
cd "$BUILD_PATH/LuaJIT-2.1.0-beta3"
|
||||
make
|
||||
make install
|
||||
ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit
|
||||
|
||||
export LUAJIT_LIB=/usr/local/lib
|
||||
export LUAJIT_INC=/usr/local/include/luajit-2.1
|
||||
|
||||
cd "$BUILD_PATH/lua-resty-core-0.1.14rc1"
|
||||
make install
|
||||
|
||||
|
|
Loading…
Reference in a new issue