summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 20:17:14 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-01 20:17:14 +0100
commit46fdce7da0a66c80a73ca53f787ccb55730da948 (patch)
tree990f8640e3fd957acb6b01e1109af6d89e76ca53 /Makefile
parent5fa8d305996ada79f8266ab542df8e9daa80d162 (diff)
Build universal binaries on OSX by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 427e74f..25a599e 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ ifeq ($(uname_S),SunOS)
STLIBNAME?=libhiredis.a
STLIB_MAKE_CMD?=ar rcs ${STLIBNAME} ${OBJ}
else ifeq ($(uname_S),Darwin)
+ ARCH?= -arch i386 -arch x86_64
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF)
CCLINK?= -lm -pthread
DYLIBNAME?=libhiredis.dylib