[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.
|
---|
[7072e1f] | 19 | BLACK_LIST="autoconf dejagnu gettext groff man-db vim"
|
---|
[1b65a84] | 20 |
|
---|
| 21 | #--- Default optimization mode
|
---|
| 22 | # This mode is overridden by definitions in opt_override;
|
---|
| 23 | # in this way, packages can be tuned independently. For example,
|
---|
| 24 | # if you have trouble building a package in the mode set here, add
|
---|
| 25 | # the package to opt_override with a different mode.
|
---|
| 26 | #
|
---|
| 27 | # Not set here combined modes of form defOpt_myMode.
|
---|
| 28 | # Combined modes of form modeA_modeB can be set here.
|
---|
[7072e1f] | 29 | DEF_OPT_MODE=O2pipe
|
---|
[1b65a84] | 30 |
|
---|
| 31 |
|
---|
| 32 | #--- Active optimization variables
|
---|
| 33 | # Variables listed here will be set as defined in the appropriate
|
---|
| 34 | # file in opt_config.d/; others will be ignored.
|
---|
| 35 | ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
---|
| 36 | OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
---|
| 37 |
|
---|
| 38 | #--- Load optimization modes
|
---|
| 39 | # To add modes, create a working template..
|
---|
| 40 | # cp opt_config.d/O3pipe opt_config.d/newMode
|
---|
| 41 | # ..and edit it as desired.
|
---|
| 42 | #
|
---|
| 43 | # To inherit another mode and add to it, see opt_config.d/O3pipe_march
|
---|
| 44 | # or opt_config.d/defOpt_fPIC as examples for two different ways of
|
---|
| 45 | # doing it. Given opt_config.d/modeA_modeB_modeC, modeB inherits
|
---|
| 46 | # the optimizations of modeA by sourcing it, and modeC inherits those
|
---|
| 47 | # of modeB (which includes those of modeA).
|
---|
| 48 | #
|
---|
| 49 | # Add packages that are to use this mode to opt_override with:
|
---|
| 50 | # echo 'myPkg newMode' >> opt_override
|
---|
| 51 | for mode in optimize/opt_config.d/* ; do
|
---|
| 52 | source $mode
|
---|
| 53 | done
|
---|