From: | "Jim Ramsay (lack)" <lack@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-plugins/gkrellm-mailwatch/files: 2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch |
Date: | Mon, 01 Nov 2010 14:19:50 |
Message-Id: | 20101101141946.C934320054@flycatcher.gentoo.org |
1 | lack 10/11/01 14:19:46 |
2 | |
3 | Added: 2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch |
4 | Log: |
5 | One more change: Do not force -O2 in CFLAGS to allow user override |
6 | |
7 | (Portage version: 2.1.9.14/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: 2.4.3-0004-Do-not-force-O2-in-CFLAGS.patch |
16 | =================================================================== |
17 | From 68bd98eb4144ce1f784e9c7aee4735a3f668453e Mon Sep 17 00:00:00 2001 |
18 | From: Jim Ramsay <jim_ramsay@××××.com> |
19 | Date: Mon, 1 Nov 2010 10:11:30 -0400 |
20 | Subject: [PATCH 4/4] Do not force -O2 in CFLAGS |
21 | |
22 | Only uses -O2 if the user has not specified any CFLAGS in the |
23 | environment. |
24 | --- |
25 | Makefile | 3 ++- |
26 | 1 files changed, 2 insertions(+), 1 deletions(-) |
27 | |
28 | diff --git a/Makefile b/Makefile |
29 | index 02ca376..c4ca35c 100644 |
30 | --- a/Makefile |
31 | +++ b/Makefile |
32 | @@ -10,7 +10,8 @@ GKRELLM_INCLUDE= -I/usr/local/include |
33 | |
34 | INSTALL=install -c -m 755 |
35 | |
36 | -CFLAGS += -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE) |
37 | +CFLAGS ?= -O2 |
38 | +CFLAGS += -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE) |
39 | LIBS = $(GTK_LIB) $(IMLIB_LIB) |
40 | LDFLAGS += -shared |
41 | |
42 | -- |
43 | 1.7.3.1 |