Skip to content

Commit b35130f

Browse files
committed
suffering eternal
1 parent a82af16 commit b35130f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-lua.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,22 @@ jobs:
4242
4343
cd "lua-5.4.6"
4444
make clean
45-
make MYCFLAGS="-fPIC" MYLDFLAGS="-shared" linux
45+
46+
# Build the object files with PIC
47+
cd src
48+
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_LINUX -fPIC -c *.c
49+
50+
# Create shared library directly
51+
gcc -shared -o liblua5.4.so *.o -lm -ldl
4652
4753
# Verify build output
48-
if [ ! -f src/liblua.so ]; then
54+
if [ ! -f liblua5.4.so ]; then
4955
echo "Build failed - library not found"
5056
exit 1
5157
fi
5258
5359
mkdir -p /work/artifacts
54-
cp src/liblua.so /work/artifacts/liblua5.4.so
60+
cp liblua5.4.so /work/artifacts/
5561
5662
# Verify copy
5763
if [ ! -f /work/artifacts/liblua5.4.so ]; then

0 commit comments

Comments
 (0)