diff options
Diffstat (limited to 'databases/redis4/files/patch-deps-Makefile')
-rw-r--r-- | databases/redis4/files/patch-deps-Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/redis4/files/patch-deps-Makefile b/databases/redis4/files/patch-deps-Makefile new file mode 100644 index 000000000000..e252c929c246 --- /dev/null +++ b/databases/redis4/files/patch-deps-Makefile @@ -0,0 +1,20 @@ +--- deps/Makefile.orig 2016-02-02 19:38:43.438304000 -0500 ++++ deps/Makefile 2016-02-02 19:40:05.911356000 -0500 +@@ -59,7 +59,7 @@ + LUA_CFLAGS= -D__C99FEATURES__=1 + endif + +-LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) ++LUA_CFLAGS+= -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS) + LUA_LDFLAGS+= $(LDFLAGS) + # 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 +@@ -69,7 +69,7 @@ + + lua: .make-prerequisites + @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) +- cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)" ++ cd lua/src && $(MAKE) all CC="$(CC)" CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)" + + .PHONY: lua + |