Emerging static version of openvpn results in dynamic linked version. Reproducible: Always Steps to Reproduce: 1. USE="static" emerge =net-misc/openvpn-2.0.6 2. ldd /usr/sbin/openvpn Actual Results: ldd /usr/sbin/openvpn linux-gate.so.1 => (0xffffe000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xf7ead000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xf7d78000) liblzo2.so.2 => /usr/lib/liblzo2.so.2 (0xf7d59000) libdl.so.2 => /lib/libdl.so.2 (0xf7d55000) libc.so.6 => /lib/libc.so.6 (0xf7c36000) /lib/ld-linux.so.2 (0xf7eef000) Expected Results: ldd /usr/sbin/openvpn not a dynamic executable Seems like '-e' and '-i' have to be exchanged in ebuild: --- openvpn-2.0.6.ebuild_old 2007-04-16 13:14:42.000000000 +0200 +++ openvpn-2.0.6.ebuild 2007-04-16 13:15:04.000000000 +0200 @@ -53,7 +53,7 @@ $(use_enable threads pthread) \ || die "configure failed" - use static && sed -e -i '/^LIBS/s/LIBS = /LIBS = -static /' Makefile + use static && sed -i -e '/^LIBS/s/LIBS = /LIBS = -static /' Makefile emake || die "make failed"
Fixed, thanks.