summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-06-18 16:42:55 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-06-18 16:42:55 +0200
commit722c142801db995e682f6b60c3f83c18f03de82f (patch)
tree09aad447adf4ba5d2b9e0d651189758ad509b6e1
parent461110e809f4d313832a9420db06d92b1f559372 (diff)
Disallow overriding CFLAGS and LDFLAGS
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ff827ca..03b079a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ HIREDIS_MINOR=10
# Fallback to gcc when $CC is not in $PATH.
CC:=$(shell sh -c 'type $(CC) 2>/dev/null 1>/dev/null && echo $(CC) || echo gcc')
OPTIMIZATION?=-O3
-CFLAGS?=$(OPTIMIZATION) -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings $(ARCH) $(PROF)
+CFLAGS=$(OPTIMIZATION) -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings $(ARCH) $(PROF)
LDFLAGS=
DEBUG?= -g -ggdb
@@ -28,7 +28,7 @@ STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
ifeq ($(uname_S),SunOS)
- LDFLAGS?=-ldl -lnsl -lsocket
+ LDFLAGS=-ldl -lnsl -lsocket
DYLIB_MAKE_CMD=$(CC) -G -o $(DYLIBNAME) -h $(DYLIB_MINOR_NAME)
STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
INSTALL= cp -r