summaryrefslogtreecommitdiffstats
path: root/redis-deps-PIC.patch
diff options
context:
space:
mode:
Diffstat (limited to 'redis-deps-PIC.patch')
-rw-r--r--redis-deps-PIC.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/redis-deps-PIC.patch b/redis-deps-PIC.patch
new file mode 100644
index 0000000..944fa35
--- /dev/null
+++ b/redis-deps-PIC.patch
@@ -0,0 +1,23 @@
+--- a/deps/Makefile
++++ a/deps/Makefile
+@@ -58,7 +58,7 @@ ifeq ($(uname_S),SunOS)
+ 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
+
+