From 7f346477c88121e1cfaa7c052d7adc20469982d7 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 21 Aug 2012 14:29:49 +0200 Subject: [PATCH] Add ARCH to Makefile CFLAGS / LDFLAGS. This makes builiding with an optional 32 bit target simpler. For instance Redis (that contains an embedded copy of hiredis) when compiled with "make 32bit" uses to pass an ARCH parameter to force an hiredis 32 bit build. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 57f057e..16b8767 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc') OPTIMIZATION?=-O3 WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings DEBUG?= -g -ggdb -REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) -REAL_LDFLAGS=$(LDFLAGS) +REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH) +REAL_LDFLAGS=$(LDFLAGS) $(ARCH) DYLIBSUFFIX=so STLIBSUFFIX=a