Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101390 - Provide a global USE-flag «static»
Summary: Provide a global USE-flag «static»
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 16:21 UTC by Lars Strojny
Modified: 2005-09-20 13:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Strojny 2005-08-04 16:21:49 UTC
Some packages are providing the USE-flag 
Comment 1 Lars Strojny 2005-08-04 16:21:49 UTC
Some packages are providing the USE-flag «static» currently. But why not adding
it globally. An example eclass providing such a USE-flag would look like the
following:
==== snip =====
if use static
do
   CFLAGS="${CFLAGS} -static"
   CXXFLAGS="${CXXFLAGS -static"
done
IUSE="${IUSE} static"
=== snap =====

That's all.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-20 13:49:12 UTC
$ euse -i static
global use flags (searching: static)
************************************************************

[-    ] static - !!do not set this during bootstrap!! Causes binaries to be
statically linked instead of dynamically

local use flags (searching: static)
************************************************************
no matching entries found

Hmm. Don't actually know what are you suggesting then, packages would choose to
inherit the eclass or not, which does not differ in any way from the current
situation. Besides, some packages are known to break when compiled statically.

Closing WORKSFORME, if you disagree, then explain in more detail, please.