From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 974CA138010 for ; Sun, 28 Oct 2012 20:14:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D42DE02CE; Sun, 28 Oct 2012 20:14:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 894B2E02CE for ; Sun, 28 Oct 2012 20:14:51 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A401833D920 for ; Sun, 28 Oct 2012 20:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 47C30E5436 for ; Sun, 28 Oct 2012 20:14:49 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1351455140.f92b85c58ba42e88ee35fe40e6a1760a7213412c.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libselinux/ X-VCS-Repository: proj/hardened-dev X-VCS-Files: sys-libs/libselinux/ChangeLog sys-libs/libselinux/libselinux-2.1.12-r1.ebuild X-VCS-Directories: sys-libs/libselinux/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: f92b85c58ba42e88ee35fe40e6a1760a7213412c X-VCS-Branch: master Date: Sun, 28 Oct 2012 20:14:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bc354090-af7a-4fe5-8c8e-c5b4065bdc97 X-Archives-Hash: 1abd12aada8f989374ee2464232206ac commit: f92b85c58ba42e88ee35fe40e6a1760a7213412c Author: Sven Vermeulen siphos be> AuthorDate: Sun Oct 28 20:12:20 2012 +0000 Commit: Sven Vermeulen siphos 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; libselinux-2.1.12-r1.ebuild: + Adding support for static-libs + + 28 Oct 2012; 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