Skip to content
Snippets Groups Projects
Commit e8b627cd authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Pass build flags to achieve FULL RELRO

parent eddb0907
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ _rockname=${pkgbase#lua-}
pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
pkgver=0.2.1
_rockrel=0
pkgrel=6
pkgrel=7
pkgdesc='Platform independent system calls for Lua'
arch=(x86_64 i686)
url="https://github.com/o-lim/${pkgbase/-/}"
......@@ -23,6 +23,8 @@ _package() {
cd "$_archive"
depends=("${pkgname%-*}")
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
CFLAGS="$CPPFLAGS $CFLAGS -fPIC" \
LIBFLAG="$LDFLAGS -shared" \
make --deps-mode=none --no-manifest "$_archive-$_rockrel.rockspec"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
......
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