perl-path-tiny: bump to version 0.061
[buildroot-gz.git] / package / redis / 0001-uclibc.patch
blob01657d0ea8e9ffe1e370b662572d9334ffee99b2
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
14 @@ -1,6 +1,10 @@
15 #ifndef __CONFIG_H
16 #define __CONFIG_H
18 +#if defined(__unix) || defined(__linux__)
19 +#include <features.h>
20 +#endif
22 #ifdef __APPLE__
23 #include <AvailabilityMacros.h>
24 #endif
25 @@ -25,7 +29,7 @@
26 #endif
28 /* Test for backtrace() */
29 -#if defined(__APPLE__) || defined(__linux__)
30 +#if (defined(__APPLE__) || defined(__linux__) && !defined(__UCLIBC__))
31 #define HAVE_BACKTRACE 1
32 #endif
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
37 @@ -135,7 +135,7 @@
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