From: "Sven Vermeulen" <sven.vermeulen@siphos.be>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libselinux/
Date: Sun, 28 Oct 2012 20:14:49 +0000 (UTC) [thread overview]
Message-ID: <1351455140.f92b85c58ba42e88ee35fe40e6a1760a7213412c.SwifT@gentoo> (raw)
commit: f92b85c58ba42e88ee35fe40e6a1760a7213412c
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun Oct 28 20:12:20 2012 +0000
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sun Oct 28 20:12:20 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=f92b85c5
Adding support for static-libs
---
sys-libs/libselinux/ChangeLog | 3 +++
sys-libs/libselinux/libselinux-2.1.12-r1.ebuild | 9 ++++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLog
index 5b8e5dd..52ba7b9 100644
--- a/sys-libs/libselinux/ChangeLog
+++ b/sys-libs/libselinux/ChangeLog
@@ -3,6 +3,9 @@
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.88 2012/10/13 16:42:25 swift Exp $
28 Oct 2012; <swift@gentoo.org> libselinux-2.1.12-r1.ebuild:
+ Adding support for static-libs
+
+ 28 Oct 2012; <swift@gentoo.org> libselinux-2.1.12-r1.ebuild:
Adding static-libs IUSE and pass it to libpcre (bug #436752)
*libselinux-2.1.12-r1 (19 Oct 2012)
diff --git a/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild b/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild
index 5dce5f3..fc039b8 100644
--- a/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild
+++ b/sys-libs/libselinux/libselinux-2.1.12-r1.ebuild
@@ -58,7 +58,12 @@ src_prepare() {
}
src_compile() {
- emake AR="$(tc-getAR)" CC="$(tc-getCC)" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS}" all || die
+ use static-libs && LDFLAGS="-static"
+
+ emake \
+ AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS}" all || die
if use python; then
python_copy_sources src
@@ -76,6 +81,8 @@ src_compile() {
src_install() {
emake DESTDIR="${D}" install || die
+ use static-libs || find "${D}"/usr/ -name '*.a' -a '!' -name '*libselinux*.a' -delete
+
if use python; then
installation() {
emake DESTDIR="${D}" PYLIBVER="python$(python_get_version)" PYPREFIX="python-$(python_get_version)" install-pywrap
next reply other threads:[~2012-10-28 20:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 20:14 Sven Vermeulen [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-11 16:46 [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libselinux/ Sven Vermeulen
2013-03-29 8:53 Sven Vermeulen
2013-03-26 20:06 Sven Vermeulen
2012-11-23 22:12 Sven Vermeulen
2012-11-23 21:35 Sven Vermeulen
2012-11-22 21:06 Sven Vermeulen
2012-10-28 21:14 Sven Vermeulen
2012-10-28 20:38 Sven Vermeulen
2012-10-28 20:28 Sven Vermeulen
2012-10-28 18:17 Sven Vermeulen
2012-10-19 18:39 Sven Vermeulen
2012-10-06 19:24 Sven Vermeulen
2012-08-08 20:00 Sven Vermeulen
2012-08-08 17:01 Sven Vermeulen
2012-02-26 16:16 Sven Vermeulen
2011-08-03 9:34 Anthony G. Basile
2011-07-13 21:57 Sven Vermeulen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351455140.f92b85c58ba42e88ee35fe40e6a1760a7213412c.SwifT@gentoo \
--to=sven.vermeulen@siphos.be \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox