mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 09:56:43 -04:00
Highlights for this version: - new generational mode for garbage collection - to-be-closed variables - const variables - complete list: https://www.lua.org/manual/5.4/readme.html#changes The Lua Manual can be found here: https://www.lua.org/manual/5.4/ Incompatibilities from the previous version are specifically documented here: https://www.lua.org/manual/5.4/manual.html#8 Submitted by: Russ Haley <russ haley gmail com> Co-submitted by: Andrew Gierth <andrew_tao173 riddles org uk> Differential Revision: https://reviews.freebsd.org/D14709
45 lines
990 B
Text
45 lines
990 B
Text
--- src/Makefile.orig 2020-04-15 13:00:29 UTC
|
|
+++ src/Makefile
|
|
@@ -7,11 +7,12 @@
|
|
PLAT= guess
|
|
|
|
CC= gcc -std=gnu99
|
|
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
|
|
+CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
|
|
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
|
|
LIBS= -lm $(SYSLIBS) $(MYLIBS)
|
|
+SOLIBS= -lm
|
|
|
|
-AR= ar rcu
|
|
+AR= ar
|
|
RANLIB= ranlib
|
|
RM= rm -f
|
|
UNAME= uname
|
|
@@ -39,12 +40,13 @@ BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
|
|
|
|
LUA_T= lua
|
|
LUA_O= lua.o
|
|
+LUA_SO= liblua.so
|
|
|
|
LUAC_T= luac
|
|
LUAC_O= luac.o
|
|
|
|
ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
|
|
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
|
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
|
|
ALL_A= $(LUA_A)
|
|
|
|
# Targets start here.
|
|
@@ -56,8 +58,11 @@ o: $(ALL_O)
|
|
|
|
a: $(ALL_A)
|
|
|
|
+$(LUA_SO): $(CORE_O) $(LIB_O)
|
|
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $? $(SOLIBS)
|
|
+
|
|
$(LUA_A): $(BASE_O)
|
|
- $(AR) $@ $(BASE_O)
|
|
+ $(AR) $(ARFLAGS) $@ $(BASE_O)
|
|
$(RANLIB) $@
|
|
|
|
$(LUA_T): $(LUA_O) $(LUA_A)
|