summaryrefslogtreecommitdiff
path: root/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch')
-rw-r--r--x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch
new file mode 100644
index 000000000000..828c9dd2d5f4
--- /dev/null
+++ b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch
@@ -0,0 +1,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
+