2014-12-09 11:59:25 +00:00
|
|
|
From 4325ecb8fadeb36c7d09b994360110fa9c7b63a8 Mon Sep 17 00:00:00 2001
|
2014-09-11 12:01:43 +00:00
|
|
|
From: =?UTF-8?q?Ha=C3=AFkel=20Gu=C3=A9mar?= <hguemar@fedoraproject.org>
|
2014-12-09 11:59:25 +00:00
|
|
|
Date: Mon, 8 Dec 2014 10:02:54 +0100
|
|
|
|
Subject: [PATCH 2/5] redis 2.8.18: deps library fPIC performance tuning
|
2014-09-11 12:01:43 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
deps/Makefile | 2 +-
|
|
|
|
deps/linenoise/Makefile | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/deps/Makefile b/deps/Makefile
|
2014-12-09 11:59:25 +00:00
|
|
|
index 1f623ea..4c2df41 100644
|
2014-09-11 12:01:43 +00:00
|
|
|
--- a/deps/Makefile
|
|
|
|
+++ b/deps/Makefile
|
2014-06-19 06:42:22 +00:00
|
|
|
@@ -58,7 +58,7 @@ ifeq ($(uname_S),SunOS)
|
|
|
|
LUA_CFLAGS= -D__C99FEATURES__=1
|
|
|
|
endif
|
|
|
|
|
2014-12-09 11:59:25 +00:00
|
|
|
-LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL $(CFLAGS)
|
|
|
|
+LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL $(CFLAGS) -fPIC
|
2014-06-19 06:42:22 +00:00
|
|
|
LUA_LDFLAGS+= $(LDFLAGS)
|
2014-09-11 12:01:43 +00:00
|
|
|
# lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
|
|
|
|
# challenging to cross-compile lua (and redis). These defines make it easier
|
|
|
|
diff --git a/deps/linenoise/Makefile b/deps/linenoise/Makefile
|
|
|
|
index 1dd894b..712f2a6 100644
|
|
|
|
--- a/deps/linenoise/Makefile
|
|
|
|
+++ b/deps/linenoise/Makefile
|
2014-06-19 06:42:22 +00:00
|
|
|
@@ -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
|
|
|
|
|
2014-09-11 12:01:43 +00:00
|
|
|
--
|
2014-12-09 11:59:25 +00:00
|
|
|
2.1.0
|
2014-09-11 12:01:43 +00:00
|
|
|
|