Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/gkrellkam/files: gkrellkam-2.0.0-makefile.patch
Date: Sat, 31 Aug 2013 14:41:57
Message-Id: 20130831144151.6AABC2004C@flycatcher.gentoo.org
1 pacho 13/08/31 14:41:51
2
3 Added: gkrellkam-2.0.0-makefile.patch
4 Log:
5 Fix LDFLAGS/gcc usage (#338903), deps (#421703) and gcc-4.7 building (#426454). By Michael Mair-Keimberger (iamnr3).
6
7 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
8
9 Revision Changes Path
10 1.1 x11-plugins/gkrellkam/files/gkrellkam-2.0.0-makefile.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-makefile.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-makefile.patch?rev=1.1&content-type=text/plain
14
15 Index: gkrellkam-2.0.0-makefile.patch
16 ===================================================================
17 --- Makefile 2002-10-23 18:36:20.000000000 +0200
18 +++ Makefile_new 2013-03-16 14:02:42.979029588 +0100
19 @@ -12,10 +12,10 @@
20 # This should point to the GKrellM headers
21 GKRELLM_HDRS = /usr/include
22
23 -CC := gcc
24 +CC = $(CC)
25 GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
26 -CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) -I$(GKRELLM_HDRS)
27 -LDFLAGS := -shared -Wl
28 +CFLAGS := $(CFLAGS) -fPIC $(GTKFLAGS) -I$(GKRELLM_HDRS)
29 +LFLAGS = -shared
30 INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins
31 USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm2/plugins
32 MANPAGES := gkrellkam-list.5
33 @@ -26,7 +26,7 @@
34 all: $(TARGET).so
35
36 %.so: %.o
37 - $(CC) $(LDFLAGS) -o $@ $<
38 + $(CC) $(CFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $<
39
40 clean:
41 -rm -f $(TARGET).so $(TARGET).o