From: | "Santiago M. Mola (coldwind)" <coldwind@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-misc/nut/files: nut-14.1-build-fixes.patch |
Date: | Sat, 22 Nov 2008 00:10:46 |
Message-Id: | E1L3g5E-0006eO-SM@stork.gentoo.org |
1 | coldwind 08/11/22 00:10:44 |
2 | |
3 | Added: nut-14.1-build-fixes.patch |
4 | Log: |
5 | Version bump, use EAPI 2, honor LDFLAGS, fix --as-needed (bug #246904). |
6 | (Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo-r2 x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-misc/nut/files/nut-14.1-build-fixes.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/nut/files/nut-14.1-build-fixes.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/nut/files/nut-14.1-build-fixes.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: nut-14.1-build-fixes.patch |
15 | =================================================================== |
16 | * Use $(CC) instead of gcc. |
17 | * Honor LDFLAGS. |
18 | * Put -l flags at the end so it doesn't break --as-needed linker flag (bug #246904) |
19 | --- a/Makefile |
20 | +++ b/Makefile |
21 | @@ -3,7 +3,7 @@ |
22 | CFLAGS= -O3 -s -Wall -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/local/lib/nut\" -ansi -pedantic |
23 | |
24 | nut: $(objects) |
25 | - gcc ${CFLAGS} -lm -o nut $(objects) |
26 | + $(CC) ${CFLAGS} -o nut $(LDFLAGS) $(objects) -lm |
27 | |
28 | deps: |
29 | makedepend *.c |