Changeset View
Changeset View
Standalone View
Standalone View
lang/lua54/files/patch-src_Makefile
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/Makefile.orig 2018-04-07 20:16:26 UTC | |||||
+++ src/Makefile | |||||
@@ -7,11 +7,12 @@ | |||||
PLAT= none | |||||
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 | |||||
@@ -35,12 +36,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. | |||||
@@ -52,8 +54,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) |