commit: 3766a80791217dd04646e4c4a4f8da0c43546e26 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Wed Nov 9 19:23:38 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Nov 9 19:25:27 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3766a807
app-emulation/runc: 1.0.0_rc2 Add hardened support Package-Manager: portage-2.3.0 app-emulation/runc/runc-1.0.0_rc2.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app-emulation/runc/runc-1.0.0_rc2.ebuild b/app-emulation/runc/runc-1.0.0_rc2.ebuild index 0844ed4..da27cda 100644 --- a/app-emulation/runc/runc-1.0.0_rc2.ebuild +++ b/app-emulation/runc/runc-1.0.0_rc2.ebuild @@ -20,7 +20,7 @@ HOMEPAGE="http://runc.io" LICENSE="Apache-2.0" SLOT="0" -IUSE="apparmor +seccomp" +IUSE="apparmor hardened +seccomp" DEPEND="" RDEPEND=" @@ -33,7 +33,8 @@ S=${WORKDIR}/${P}/src/${EGO_PN} src_compile() { # Taken from app-emulation/docker-1.7.0-r1 export CGO_CFLAGS="-I${ROOT}/usr/include" - export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)" + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '') + -L${ROOT}/usr/$(get_libdir)" # Setup GOPATH so things build rm -rf .gopath