Bug 105479 - Linking openvpn statically (ebuild patch)
Bug#: 105479 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: uberlord@gentoo.org Reported By: cnoss@gmx.de
Component: Ebuilds
URL: 
Summary: Linking openvpn statically (ebuild patch)
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2005-09-10 04:50 0000
Description:   Opened: 2005-09-10 04:50 0000
I was able to link openvpn statically with this change:

sed -i -e '/^LIBS/s/LIBS = /LIBS = -static /' Makefile

after the econf step. (success confirmed by ldd) From my "emerge info":

Portage 2.0.51.22-r2 (uclibc/x86/2005.1, gcc-3.4.4, unavailable, 2.6.9-epia0 i686)
USE="x86 berkdb glibc-compat20 ncurses perl readline ssl static uclibc zlib
userland_GNU kernel_linux elibc_uclibc"

It was a uclibc x86 environment.

I haven't run the binary yet.

------- Comment #1 From Clemens Noss 2005-09-10 04:51:43 0000 -------
Created an attachment (id=68100) [details]
ebuild patch

------- Comment #2 From Roy Marples (RETIRED) 2005-10-13 07:12:34 0000 -------
Thanks for the patch!

Fixed in 2.0.2-r1