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