Created
October 3, 2011 10:04
-
-
Save stevenh512/1258809 to your computer and use it in GitHub Desktop.
redis on osx tiger(ppc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 5219a63..4f9cfad 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -10,10 +10,10 @@ ifeq ($(uname_S),SunOS) | |
CCLINK?= -ldl -lnsl -lsocket -lm -lpthread | |
else | |
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W $(ARCH) $(PROF) | |
- CCLINK?= -lm -pthread | |
+ CCLINK?= -lm -lpthread | |
endif | |
CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) | |
-DEBUG?= -g -rdynamic -ggdb | |
+DEBUG?= -g -ggdb | |
INSTALL_TOP= /usr/local | |
INSTALL_BIN= $(INSTALL_TOP)/bin | |
diff --git a/config.h b/config.h | |
index 6e98fbb..7c7cba5 100644 | |
--- a/config.h | |
+++ b/config.h | |
@@ -13,7 +13,7 @@ | |
#endif | |
/* define redis_fstat to fstat or fstat64() */ | |
-#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6) | |
+#if defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6) && !defined(MAC_OS_X_VERSION_10_4) | |
#define redis_fstat fstat64 | |
#define redis_stat stat64 | |
#else | |
@@ -22,7 +22,7 @@ | |
#endif | |
/* test for backtrace() */ | |
-#if defined(__APPLE__) || defined(__linux__) | |
+#if (defined(__APPLE__) || defined(__linux__)) && !defined(MAC_OS_X_VERSION_10_4) | |
#define HAVE_BACKTRACE 1 | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment