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