fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1--- a/Makefile 2021-05-14 22:39:14.407200562 +0300
2+++ b/Makefile 2021-05-14 22:36:23.828513407 +0300
3@@ -41,7 +41,7 @@
4 # What to install.
5 TO_BIN= lua luac
6 TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
7-TO_LIB= liblua.a
8+TO_LIB= liblua.${version}.dylib
9 TO_MAN= lua.1 luac.1
10
11 # Lua version and release.
12@@ -60,6 +60,8 @@
13 cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
14 cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
15 cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
16+ ln -s -f liblua.${version}.dylib $(INSTALL_LIB)/liblua.${luaversion}.dylib
17+ ln -s -f liblua.${luaversion}.dylib $(INSTALL_LIB)/liblua.dylib
18
19 uninstall:
20 cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
21--- a/src/Makefile 2021-05-14 22:35:38.575051882 +0300
22+++ b/src/Makefile 2021-05-14 22:35:33.584631206 +0300
23@@ -32,7 +32,7 @@
24
25 PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
26
27-LUA_A= liblua.a
28+LUA_A= liblua.${version}.dylib
29 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
30 LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o
31 BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
32@@ -57,11 +57,13 @@
33 a: $(ALL_A)
34
35 $(LUA_A): $(BASE_O)
36- $(AR) $@ $(BASE_O)
37- $(RANLIB) $@
38+ $(CC) -dynamiclib -install_name $(out)/lib/liblua.${version}.dylib \
39+ -compatibility_version ${version} -current_version ${version} \
40+ -o liblua.${version}.dylib $^
41
42 $(LUA_T): $(LUA_O) $(LUA_A)
43- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
44+ $(CC) -fno-common $(MYLDFLAGS) \
45+ -o $@ $(LUA_O) $(LUA_A) -L. -llua.${version} $(LIBS)
46
47 $(LUAC_T): $(LUAC_O) $(LUA_A)
48 $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)