From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/hwinfo/files: hwinfo-16.0-asneeded.patch |
Date: | Tue, 29 Jun 2010 18:38:07 |
Message-Id: | 20100629182921.401BB2C621@corvid.gentoo.org |
1 | ssuominen 10/06/29 18:29:21 |
2 | |
3 | Added: hwinfo-16.0-asneeded.patch |
4 | Log: |
5 | Fix building with -Wl,--as-needed wrt #313369 by Kacper Kowalik. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-apps/hwinfo/files/hwinfo-16.0-asneeded.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/files/hwinfo-16.0-asneeded.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/files/hwinfo-16.0-asneeded.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: hwinfo-16.0-asneeded.patch |
15 | =================================================================== |
16 | Fixing as-needed issues and respecting LDFLAGS |
17 | |
18 | http://bugs.gentoo.org/313369 |
19 | |
20 | --- src/Makefile |
21 | +++ src/Makefile |
22 | @@ -23,9 +23,9 @@ |
23 | |
24 | ifdef SHARED_FLAGS |
25 | $(LIBHD_SO): $(LIBHD) |
26 | - $(CC) -shared $(SO_LIBS) -Wl,--whole-archive $(LIBHD) -Wl,--no-whole-archive \ |
27 | + $(CC) $(LDFLAGS) -shared -Wl,--whole-archive $(LIBHD) -Wl,--no-whole-archive \ |
28 | -Wl,-soname=$(LIBHD_SONAME) \ |
29 | - -o $(LIBHD_SO) |
30 | + -o $(LIBHD_SO) $(SO_LIBS) |
31 | ln -snf $(LIBHD_NAME) $(LIBHD_SONAME) |
32 | ln -snf $(LIBHD_SONAME) $(LIBHD_BASE).so |
33 | else |