-
Notifications
You must be signed in to change notification settings - Fork 9
/
squeezeplay-lua-aarch64.patch
69 lines (58 loc) · 2.18 KB
/
squeezeplay-lua-aarch64.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Index: src/Makefile
===================================================================
--- src/Makefile (revision 242)
+++ src/Makefile (working copy)
@@ -10,7 +10,7 @@
# commented out things exported by main mainfile
CC ?= gcc
-CFLAGS ?= -s -fPIC -O2 -Wall $(MYCFLAGS)
+CFLAGS ?= -march=armv8-a+crc -mtune=cortex-a72 -s -O2 -fPIC -Wall -Wl,-rpath,/opt/jivelite/lib $(MYCFLAGS)
AR ?= ar
ARFLAGS ?= rcu
RANLIB ?= ranlib
@@ -17,8 +17,8 @@
RM= rm -f
LIBS= -lm $(MYLIBS)
-MYCFLAGS=-Wl,rpath,/opt/squeezeplay/lib
-MYLDFLAGS=
+MYCFLAGS=-march=armv8-a+crc -mtune=cortex-a72 -s -O2
+MYLDFLAGS=-Wl,-rpath,/opt/jivelite/lib
MYLIBS=
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
@@ -42,7 +42,7 @@
LUATHREAD_O=
ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T)
ALL_A= $(LUA_A)
default: $(PLAT)
@@ -60,10 +60,10 @@
$(LUA_SO): $(CORE_O) $(LIB_O)
$(CC) -o $@ $(MYLDFLAGS) -shared $(CORE_O) $(LIB_O)
-$(LUA_T): $(LUA_O) $(LUA_A)
- $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+$(LUA_T): $(LUA_O) $(LUA_SO)
+ $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $(MYLDFLAGS) $(LUA_O) $(LUA_SO) $(LIBS)
-$(LUAC_T): $(LUAC_O) $(LUA_A)
+$(LUAC_T): $(LUAC_O) $(LUA_SO)
$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
.c.o:
@@ -104,7 +104,7 @@
$(MAKE) all MYCFLAGS=
linux:
- $(MAKE) all MYCFLAGS="-O2 -Wall -fpic -DLUA_USE_LINUX" MYLIBS="-ldl -lreadline -lhistory -lcurses" OSXPREFIX="pwd"
+ $(MAKE) all MYCFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -s -O2 -DLUA_USE_LINUX" MYLIBS="-ldl" OSXPREFIX="pwd"
squeezeos:
$(MAKE) all MYCFLAGS="-Os -Wall -fpic -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" OSXPREFIX="pwd"
Index: src/luaconf.h
===================================================================
--- src/luaconf.h (revision 242)
+++ src/luaconf.h (working copy)
@@ -49,7 +49,7 @@
#if defined(LUA_USE_LINUX)
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
-#define LUA_USE_READLINE /* needs some extra libraries */
+/* #define LUA_USE_READLINE needs some extra libraries */
#endif
#if defined(LUA_USE_MACOSX)