lua54: avoid conditional usage of -Os

The CMCFLAGS variable in Lua 5.4's Makefile specifies -Os by
default, apparently to shrink the code size of certain files.
However, at least on my machine that causes issues with valgrind,
rendering it practically unusable through hundreds of messages
about uninitialized memory.
This commit is contained in:
q66 2020-08-03 15:40:03 +02:00
parent 388388187e
commit 6198928d08
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'lua54' # Template file for 'lua54'
pkgname=lua54 pkgname=lua54
version=5.4.0 version=5.4.0
revision=1 revision=2
wrksrc=lua-${version} wrksrc=lua-${version}
makedepends="ncurses-devel readline-devel" makedepends="ncurses-devel readline-devel"
short_desc="Powerful, fast, lightweight, embeddable scripting language (5.4.x)" short_desc="Powerful, fast, lightweight, embeddable scripting language (5.4.x)"
@ -24,7 +24,7 @@ do_build() {
-e '/^LUA_(SO|A|T)=/ s;lua;lua5.4;' \ -e '/^LUA_(SO|A|T)=/ s;lua;lua5.4;' \
-e '/^LUAC_T=/ s;luac;luac5.4;' -e '/^LUAC_T=/ s;luac;luac5.4;'
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \ make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" \
CC="$CC" RANLIB="$RANLIB" \ CMCFLAGS="" CC="$CC" RANLIB="$RANLIB" \
INSTALL_DATA="cp -d" LUA_SO=liblua5.4.so ${makejobs} linux-readline INSTALL_DATA="cp -d" LUA_SO=liblua5.4.so ${makejobs} linux-readline
} }