commit 1d6159e20e823f91b1ee3da584a431c6a22305f4 parent 47593eaf70b9c190b6fc5986e2f9eabd40aff46e Author: parazyd <parazyd@dyne.org> Date: Mon, 24 Oct 2016 22:55:40 +0200 net-analyzer/openbsd-netcat: Enable static build. Diffstat:
M | net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild @@ -12,7 +12,7 @@ SRC_URI="http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz" LICENSE="BSD" SLOT="0" -IUSE="elibc_Darwin" +IUSE="elibc_Darwin static" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x64-macos" @@ -37,6 +37,10 @@ src_prepare() { } src_compile() { + if use static; then + CFLAGS="${CFLAGS} -static" + LDFLAGS="${LDFLAGS} -static" + fi emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die }