diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-07-31 17:43:00 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-07-31 17:43:00 -0500 |
commit | 982459ff2287082ef844e80b3c9c0deda3ad673b (patch) | |
tree | 02e872e048d005f5a3f9c711685ad60592f20152 | |
parent | 2a5a624fdb44f572c212ce604964f7197245b338 (diff) | |
download | lua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.tar.gz lua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.tar.bz2 lua-packaging-982459ff2287082ef844e80b3c9c0deda3ad673b.zip |
Try putting environment variables somewhere else
-rwxr-xr-x | init | 2 | ||||
-rw-r--r-- | meta.lua | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") | |||
4 | mkdir "$luaver" | 4 | mkdir "$luaver" |
5 | tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 | 5 | tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 |
6 | cd "$luaver" | 6 | cd "$luaver" |
7 | make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $1 $2" | 7 | make mingw "CFLAGS= -Wall -Wextra -std=c99 -pedantic $CFLAGS" |
8 | cd "/root/" | 8 | cd "/root/" |
9 | cp "$luaver/src/*.exe" . | 9 | cp "$luaver/src/*.exe" . |
10 | cp "$luaver/src/*.dll" . | 10 | cp "$luaver/src/*.dll" . |
@@ -38,7 +38,9 @@ for version, link, name, optimization, rel, flag, _, image in cartesian(lua_vers | |||
38 | "lua" .. version .. ".dll", | 38 | "lua" .. version .. ".dll", |
39 | "luac.exe", | 39 | "luac.exe", |
40 | }, | 40 | }, |
41 | entrypoint = "init " .. optimization .. " " .. flag, | 41 | env = { |
42 | CFLAGS = optimization .. " " .. flag, | ||
43 | }, | ||
42 | }) | 44 | }) |
43 | end | 45 | end |
44 | return builds | 46 | return builds |