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