summaryrefslogtreecommitdiff
blob: 828c9dd2d5f440112710ebfbf27274e57e31b8e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 68bd98eb4144ce1f784e9c7aee4735a3f668453e Mon Sep 17 00:00:00 2001
From: Jim Ramsay <jim_ramsay@dell.com>
Date: Mon, 1 Nov 2010 10:11:30 -0400
Subject: [PATCH 4/4] Do not force -O2 in CFLAGS

Only uses -O2 if the user has not specified any CFLAGS in the
environment.
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 02ca376..c4ca35c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ GKRELLM_INCLUDE= -I/usr/local/include
 
 INSTALL=install -c -m 755
 
-CFLAGS += -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+CFLAGS ?= -O2
+CFLAGS += -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
 LIBS = $(GTK_LIB) $(IMLIB_LIB)
 LDFLAGS += -shared
 
-- 
1.7.3.1