Skip to content

Commit

Permalink
app-emulation/runc: 1.0.0_rc2 Add hardened support
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
  • Loading branch information
williamh committed Nov 9, 2016
1 parent d4860fd commit 3766a80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app-emulation/runc/runc-1.0.0_rc2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HOMEPAGE="http://runc.io"

LICENSE="Apache-2.0"
SLOT="0"
IUSE="apparmor +seccomp"
IUSE="apparmor hardened +seccomp"

DEPEND=""
RDEPEND="
Expand All @@ -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
Expand Down

0 comments on commit 3766a80

Please sign in to comment.