1 |
commit: f92b85c58ba42e88ee35fe40e6a1760a7213412c |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sun Oct 28 20:12:20 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Sun Oct 28 20:12:20 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=f92b85c5 |
7 |
|
8 |
Adding support for static-libs |
9 |
|
10 |
--- |
11 |
sys-libs/libselinux/ChangeLog | 3 +++ |
12 |
sys-libs/libselinux/libselinux-2.1.12-r1.ebuild | 9 ++++++++- |
13 |
2 files changed, 11 insertions(+), 1 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog |
16 |
index 5b8e5dd..52ba7b9 100644 |
17 |
--- a/sys-libs/libselinux/ChangeLog |
18 |
+++ b/sys-libs/libselinux/ChangeLog |
19 |
@@ -3,6 +3,9 @@ |
20 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.88 2012/10/13 16:42:25 swift Exp $ |
21 |
|
22 |
28 Oct 2012; <swift@g.o> libselinux-2.1.12-r1.ebuild: |
23 |
+ Adding support for static-libs |
24 |
+ |
25 |
+ 28 Oct 2012; <swift@g.o> libselinux-2.1.12-r1.ebuild: |
26 |
Adding static-libs IUSE and pass it to libpcre (bug #436752) |
27 |
|
28 |
*libselinux-2.1.12-r1 (19 Oct 2012) |
29 |
|
30 |
diff --git a/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild b/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild |
31 |
index 5dce5f3..fc039b8 100644 |
32 |
--- a/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild |
33 |
+++ b/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild |
34 |
@@ -58,7 +58,12 @@ src_prepare() { |
35 |
} |
36 |
|
37 |
src_compile() { |
38 |
- emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS}" all || die |
39 |
+ use static-libs && LDFLAGS="-static" |
40 |
+ |
41 |
+ emake \ |
42 |
+ AR="$(tc-getAR)" \ |
43 |
+ CC="$(tc-getCC)" \ |
44 |
+ LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS}" all || die |
45 |
|
46 |
if use python; then |
47 |
python_copy_sources src |
48 |
@@ -76,6 +81,8 @@ src_compile() { |
49 |
src_install() { |
50 |
emake DESTDIR="${D}" install || die |
51 |
|
52 |
+ use static-libs || find "${D}"/usr/ -name '*.a' -a '!' -name '*libselinux*.a' -delete |
53 |
+ |
54 |
if use python; then |
55 |
installation() { |
56 |
emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="python-$(python_get_version)" install-pywrap |