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

Bug 92607

Summary: [wxGTK] need USE flag mapped to --disable-shared to build static app
Product: Gentoo Linux Reporter: JC Francois <jc>
Component: New packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: eva, radek
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description JC Francois 2005-05-14 08:44:32 UTC
I develop an app with wxWidgets and I want the libraries to be statically linked to my executable. To do so I need to configure wxWidgets with the --disable-shared flag but these is no USE flag defined in the ebuild that enables me to do that.

Can a USE flag be added please?

Thanks,

JC

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-14 08:58:38 UTC
Does this work for you?

ECONF_EXTRA='--disable-shared' emerge wxGTK

Otherwise, this looks like a dupe of Bug 51362. 
Comment 2 JC Francois 2005-05-18 02:10:07 UTC
I guess it does but I will have to remember to do this manually every time
there's an update, right?

I thought that this is what USE flags are precisely useful for. I was looking
for a USE flag (static?) that I could associate with wxGTK ebuild in the
package.use file and have it take care of itself automatically.

I am sorry if I misunderstood the principle.

Thanks,

JC
Comment 3 JC Francois 2005-05-21 02:10:50 UTC
Actually it looks like the option you mention should be:

EXTRA_ECONF="--disable-shared" emerge wxGTK

but the ebuild should use econf for this to work and it doesn't.

Found this in:
http://forums.gentoo.org/viewtopic.php?t=93660
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2007-02-26 04:14:50 UTC
i don't think we can do this at this time.  with wxGTK, you either get shared or static, not both.  we have to lean toward the option that most users would want, and that breaks fewer clueless user's systems.  being that you actually know what you're doing, it's not difficult to copy the ebuild to an overlay and modify it to meet your needs.