[1b65a84] | 1 | #####
|
---|
| 2 | #
|
---|
| 3 | # optimization configuration file
|
---|
| 4 | #
|
---|
| 5 | #####
|
---|
| 6 | #
|
---|
| 7 | #$Id$
|
---|
| 8 | #
|
---|
| 9 |
|
---|
| 10 | #--- Extra flags passed to the packages make commands
|
---|
| 11 | # "unset" will cause the variable to be not set
|
---|
| 12 | # instead of just set to null.
|
---|
| 13 | MAKEFLAGS="-j3"
|
---|
| 14 |
|
---|
[bfd5171] | 15 | #--- List of packages that have issues with jobs control.
|
---|
[1b65a84] | 16 | # This list may be different for you.
|
---|
[bfd5171] | 17 | # If your MAKEFLAGS don't contains a -jX option, you can set
|
---|
| 18 | # a empty list here.
|
---|
[560bef1] | 19 | BLACK_LIST="attr autoconf dejagnu gettext groff man-db vim"
|
---|
| 20 | # Rationale for attr: the tests do not pass with -jX
|
---|
[1b65a84] | 21 |
|
---|
| 22 | #--- Default optimization mode
|
---|
| 23 | # This mode is overridden by definitions in opt_override;
|
---|
| 24 | # in this way, packages can be tuned independently. For example,
|
---|
| 25 | # if you have trouble building a package in the mode set here, add
|
---|
| 26 | # the package to opt_override with a different mode.
|
---|
| 27 | #
|
---|
| 28 | # Not set here combined modes of form defOpt_myMode.
|
---|
| 29 | # Combined modes of form modeA_modeB can be set here.
|
---|
[7072e1f] | 30 | DEF_OPT_MODE=O2pipe
|
---|
[1b65a84] | 31 |
|
---|
| 32 |
|
---|
| 33 | #--- Active optimization variables
|
---|
| 34 | # Variables listed here will be set as defined in the appropriate
|
---|
| 35 | # file in opt_config.d/; others will be ignored.
|
---|
| 36 | ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
---|
| 37 | OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
---|
| 38 |
|
---|
| 39 | #--- Load optimization modes
|
---|
| 40 | # To add modes, create a working template..
|
---|
| 41 | # cp opt_config.d/O3pipe opt_config.d/newMode
|
---|
| 42 | # ..and edit it as desired.
|
---|
| 43 | #
|
---|
| 44 | # To inherit another mode and add to it, see opt_config.d/O3pipe_march
|
---|
| 45 | # or opt_config.d/defOpt_fPIC as examples for two different ways of
|
---|
| 46 | # doing it. Given opt_config.d/modeA_modeB_modeC, modeB inherits
|
---|
| 47 | # the optimizations of modeA by sourcing it, and modeC inherits those
|
---|
| 48 | # of modeB (which includes those of modeA).
|
---|
| 49 | #
|
---|
| 50 | # Add packages that are to use this mode to opt_override with:
|
---|
| 51 | # echo 'myPkg newMode' >> opt_override
|
---|
| 52 | for mode in optimize/opt_config.d/* ; do
|
---|
| 53 | source $mode
|
---|
| 54 | done
|
---|