Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/kerneloops/files: 0.12-FLAGS.patch
Date: Sun, 07 Feb 2010 19:31:58
Message-Id: E1NeCrK-000412-8H@stork.gentoo.org
1 jlec 10/02/07 19:31:54
2
3 Added: 0.12-FLAGS.patch
4 Log:
5 Fix for bug 237940 & 238106
6 Missing IUSE added
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-kernel/kerneloops/files/0.12-FLAGS.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/kerneloops/files/0.12-FLAGS.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/kerneloops/files/0.12-FLAGS.patch?rev=1.1&content-type=text/plain
14
15 Index: 0.12-FLAGS.patch
16 ===================================================================
17 diff --git a/Makefile b/Makefile
18 index 86acdf2..c2b8567 100644
19 --- a/Makefile
20 +++ b/Makefile
21 @@ -10,7 +10,7 @@ LOCALESDIR=/usr/share/locale
22 MANDIR=/usr/share/man/man8
23 CC?=gcc
24
25 -CFLAGS := -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement
26 +CFLAGS ?= -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement
27
28 MY_CFLAGS := `pkg-config --cflags libnotify gtk+-2.0`
29 #
30 @@ -18,8 +18,8 @@ MY_CFLAGS := `pkg-config --cflags libnotify gtk+-2.0`
31 # are needed. -Wl,--as-needed tells the linker to just drop unused ones,
32 # and that makes the applet load faster and use less memory.
33 #
34 -LDF_A := -Wl,--as-needed `pkg-config --libs libnotify gtk+-2.0`
35 -LDF_D := -Wl,--as-needed `pkg-config --libs glib-2.0 dbus-glib-1` `curl-config --libs` -Wl,"-z relro" -Wl,"-z now"
36 +LIBSA := `pkg-config --libs libnotify gtk+-2.0`
37 +LIBSD := `pkg-config --libs glib-2.0 dbus-glib-1` `curl-config --libs`
38
39 all: kerneloops kerneloops-applet kerneloops.8.gz
40
41 @@ -30,11 +30,11 @@ noui: kerneloops kerneloops.8.gz
42
43
44 kerneloops: kerneloops.o submit.o dmesg.o configfile.o kerneloops.h
45 - gcc kerneloops.o submit.o dmesg.o configfile.o $(LDF_D) -o kerneloops
46 + $(CC) $(LDFLAGS) kerneloops.o submit.o dmesg.o configfile.o -o kerneloops $(LIBSD)
47 @(cd po/ && $(MAKE))
48
49 kerneloops-applet: kerneloops-applet.o
50 - gcc kerneloops-applet.o $(LDF_A)-o kerneloops-applet
51 + $(CC) $(LDFLAGS) kerneloops-applet.o -o kerneloops-applet $(LIBSA)
52
53 kerneloops.8.gz: kerneloops.8
54 gzip -9 -c $< > $@