From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-gfx/xloadimage/files: xloadimage-4.1-ldflags_and_exit.patch |
Date: | Fri, 04 Sep 2009 07:32:00 |
Message-Id: | E1MjY5e-0005tw-4B@stork.gentoo.org |
1 | ssuominen 09/09/04 12:40:30 |
2 | |
3 | Added: xloadimage-4.1-ldflags_and_exit.patch |
4 | Log: |
5 | Include stdlib.h for exit(3) and respect LDFLAGS when building uufilter binary. |
6 | (Portage version: 2.2_rc40/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/xloadimage/files/xloadimage-4.1-ldflags_and_exit.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: xloadimage-4.1-ldflags_and_exit.patch |
15 | =================================================================== |
16 | diff -ur xloadimage.4.1.orig/Makefile.in xloadimage.4.1/Makefile.in |
17 | --- xloadimage.4.1.orig/Makefile.in 2009-09-04 15:37:09.000000000 +0300 |
18 | +++ xloadimage.4.1/Makefile.in 2009-09-04 15:38:50.000000000 +0300 |
19 | @@ -27,7 +27,7 @@ |
20 | $(CC) -o $@ $(OBJS) build.o $(LDFLAGS) $(XLIB) $(LIBS) |
21 | |
22 | uufilter: uufilter.c |
23 | - $(CC) $(CFLAGS) $(DEFS) uufilter.c -o $@ |
24 | + $(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) uufilter.c -o $@ |
25 | |
26 | .c.o: config.h image.h |
27 | $(CC) $(CFLAGS) -c $(DEFS) $< |
28 | diff -ur xloadimage.4.1.orig/uufilter.c xloadimage.4.1/uufilter.c |
29 | --- xloadimage.4.1.orig/uufilter.c 2009-09-04 15:37:09.000000000 +0300 |
30 | +++ xloadimage.4.1/uufilter.c 2009-09-04 15:37:59.000000000 +0300 |
31 | @@ -11,6 +11,7 @@ |
32 | */ |
33 | |
34 | #include <stdio.h> |
35 | +#include <stdlib.h> |
36 | #include <string.h> |
37 | |
38 | int main(argc, argv) |