Skip to content
Snippets Groups Projects
Commit e9a4a7ad authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

main/luajit: build with -O2 instead of -Os

This will increase the size of the luajit package (unpacked) from
1108 kiB to 1340 kiB.
parent b46ea86b
No related branches found
No related tags found
2 merge requests!54607main/sofia-sip: backport support for forking SIP calls,!41733community/linux-edge: fix build on x86_64
......@@ -4,7 +4,7 @@ pkgname=luajit
_pkgname=luajit2
pkgver=2.1_p20210510
_pkgver=${pkgver/_p/-}
pkgrel=1
pkgrel=2
_gitrev_tests=485311ff265763c2aecce155ad697a974838857c
pkgdesc="OpenResty's branch of LuaJIT"
url="https://github.com/openresty/luajit2"
......@@ -47,6 +47,10 @@ prepare() {
}
build() {
# It's a language runtime, performance does matter. Users for whom disk
# size is more important can use lua5.1 instead.
export CFLAGS="${CFLAGS/-Os/-O2}"
# These flags are recommended by OpenResty.
local xcflags="-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_NUMMODE=2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment