Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105479

Summary: Linking openvpn statically (ebuild patch)
Product: Gentoo Linux Reporter: Clemens Noss <cnoss>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: Inclusion
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch

Description Clemens Noss 2005-09-10 04:50:09 UTC
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 Clemens Noss 2005-09-10 04:51:43 UTC
Created attachment 68100 [details, diff]
ebuild patch
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-10-13 07:12:34 UTC
Thanks for the patch!

Fixed in 2.0.2-r1