Skip to content

Commit

Permalink
libs: modified Lua release for POSIX requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Apr 4, 2021
1 parent 0547e3d commit 2b774f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lua/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ This is Lua 5.4.3, released on 15 Mar 2021.

For installation instructions, license details, and
further information about Lua, see doc/readme.html.

This is a slightly modified version for ET: Legacy.
The src/Makefile file has been adjusted to fit our
posix and posix32bit requirements.
9 changes: 6 additions & 3 deletions lua/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PLAT= guess

CC= gcc -std=gnu99
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
CFLAGS= -O2 -Wall -Wextra $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)

Expand All @@ -30,7 +30,7 @@ CMCFLAGS=

# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======

PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix posix32bit solaris

LUA_A= liblua.a
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
Expand Down Expand Up @@ -135,7 +135,10 @@ mingw:
$(MAKE) "LUAC_T=luac.exe" luac.exe

posix:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -fPIC -DLUA_USE_DLOPEN" SYSLIBS="-ldl"

posix32bit:
$(MAKE) $(ALL) SYSCFLAGS="-m32 -DLUA_USE_POSIX -fPIC -DLUA_USE_DLOPEN" SYSLDFLAGS="-m32" SYSLIBS="-ldl"

SunOS solaris:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT" SYSLIBS="-ldl"
Expand Down

0 comments on commit 2b774f0

Please sign in to comment.