summaryrefslogtreecommitdiffstats
path: root/redis-deps-PIC.patch
blob: 4d9b958f5bb85563c0d0a216ead37ff1d9441d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/deps/Makefile	
+++ a/deps/Makefile	
@@ -58,7 +58,7 @@
 	LUA_CFLAGS= -D__C99FEATURES__=1
 endif
 
-LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI $(CFLAGS)
+LUA_CFLAGS+= -O2 -Wall -fPIC -DLUA_ANSI $(CFLAGS)
 LUA_LDFLAGS+= $(LDFLAGS)
 
 lua: .make-prerequisites
--- a/deps/linenoise/Makefile	
+++ a/deps/linenoise/Makefile	
@@ -2,7 +2,7 @@ STD=
 WARN= -Wall
 OPT= -Os
 
-R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
+R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -fPIC
 R_LDFLAGS= $(LDFLAGS)
 DEBUG= -g