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/gkrellmlaunch/files: gkrellmlaunch-0.5-makefile.patch
Date: Sat, 31 Aug 2013 14:25:07
Message-Id: 20130831142502.0793020034@flycatcher.gentoo.org
1 pacho 13/08/31 14:25:02
2
3 Added: gkrellmlaunch-0.5-makefile.patch
4 Log:
5 Fix gcc47 building (#424105) and respect LDFLAGS (#335391), also fix dependencies (#335391). Thanks to Michael Mair-Keimberger (iamnr3) for the work.
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/gkrellmlaunch/files/gkrellmlaunch-0.5-makefile.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellmlaunch/files/gkrellmlaunch-0.5-makefile.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellmlaunch/files/gkrellmlaunch-0.5-makefile.patch?rev=1.1&content-type=text/plain
14
15 Index: gkrellmlaunch-0.5-makefile.patch
16 ===================================================================
17 --- Makefile 2002-09-26 15:56:06.000000000 +0200
18 +++ Makefile_new 2013-03-15 17:26:19.398383410 +0100
19 @@ -4,21 +4,25 @@
20 GTK_LIB = `pkg-config gtk+-2.0 --libs`
21
22
23 -FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) -g
24 +FLAGS = -fPIC $(GTK_INCLUDE)
25 #LIBS = $(GTK_LIB) $(IMLIB_LIB) -lefence
26 LIBS = $(GTK_LIB) $(IMLIB_LIB)
27
28 -LFLAGS = -shared -W1
29 +LFLAGS = -shared
30
31 -CC = gcc $(CFLAGS) $(FLAGS)
32 +CC = $(CC)
33
34 OBJS = gkrellmlaunch.o
35
36 +all: gkrellmlaunch.so
37 +
38 +%.o: %.c
39 + $(CC) $(CFLAGS) $(FLAGS) -c -o $@ $<
40 +
41 gkrellmlaunch.so: $(OBJS)
42 - $(CC) $(OBJS) -o gkrellmlaunch.so $(LFLAGS) $(LIBS)
43 + $(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) $(OBJS) -o gkrellmlaunch.so $(LFLAGS) $(LIBS)
44
45 clean:
46 rm -f *.o core *.so* *.bak *~
47
48 -gkrellmlaunch.o: gkrellmlaunch.c
49 -
50 +gkrellmlaunch.o: gkrellmlaunch.c
51 \ No newline at end of file