1 redis-001-uclibc.patch: This patch fixes redis so that it can be compiled
2 against uclibc. Patch originates from:
4 Support cross-compiling for uClibc targets
5 https://github.com/antirez/redis/pull/537
6 Mike Steinert, mike.steinert@gmail.com
8 Signed-off-by: Daniel Price <daniel.price@gmail.com>
10 =========================================================================
11 diff -ur old/src/config.h new/src/config.h
12 --- old/src/config.h 2012-10-26 07:20:24.000000000 -0700
13 +++ new/src/config.h 2012-10-31 13:41:51.206309564 -0700
18 +#if defined(__unix) || defined(__linux__)
19 +#include <features.h>
23 #include <AvailabilityMacros.h>
28 /* Test for backtrace() */
29 -#if defined(__APPLE__) || defined(__linux__)
30 +#if (defined(__APPLE__) || defined(__linux__) && !defined(__UCLIBC__))
31 #define HAVE_BACKTRACE 1
34 diff -ur old/src/Makefile new/src/Makefile
35 --- old/src/Makefile 2012-10-26 07:20:24.000000000 -0700
36 +++ new/src/Makefile 2012-10-31 13:40:39.224728830 -0700
38 echo REDIS_LDFLAGS=$(REDIS_LDFLAGS) >> .make-settings
39 echo PREV_FINAL_CFLAGS=$(FINAL_CFLAGS) >> .make-settings
40 echo PREV_FINAL_LDFLAGS=$(FINAL_LDFLAGS) >> .make-settings
41 - -(cd ../deps && $(MAKE) $(DEPENDENCY_TARGETS))
42 + -(cd ../deps && $(MAKE) CC="$(CC)" $(DEPENDENCY_TARGETS))
44 .PHONY: persist-settings