[1b65a84] | 1 | #####
|
---|
| 2 | #
|
---|
| 3 | # optimization configuration file
|
---|
| 4 | #
|
---|
| 5 | #####
|
---|
| 6 |
|
---|
[854854e] | 7 | #--- List of packages that have issues with parallelization.
|
---|
[fcb78f4] | 8 | ## As of December 21st, 2019, there seems to be none...
|
---|
[1b65a84] | 9 | # This list may be different for you.
|
---|
[fcb78f4] | 10 | #BLACK_LIST="attr autoconf coreutils dejagnu gettext gperf groff man-db vim"
|
---|
[c80aa1f] | 11 | # Rationale for attr, coreutils, gperf: the tests do not pass with -jX
|
---|
[fcb78f4] | 12 | # CLFS packages (not tested on December 21st, 2019)
|
---|
| 13 | #BLACK_LIST="$BLACK_LIST libee"
|
---|
[1b65a84] | 14 |
|
---|
| 15 | #--- Default optimization mode
|
---|
| 16 | # This mode is overridden by definitions in opt_override;
|
---|
| 17 | # in this way, packages can be tuned independently. For example,
|
---|
| 18 | # if you have trouble building a package in the mode set here, add
|
---|
| 19 | # the package to opt_override with a different mode.
|
---|
| 20 | #
|
---|
| 21 | # Not set here combined modes of form defOpt_myMode.
|
---|
| 22 | # Combined modes of form modeA_modeB can be set here.
|
---|
[e598708] | 23 | DEF_OPT_MODE=noOpt
|
---|
[1b65a84] | 24 |
|
---|
| 25 |
|
---|
| 26 | #--- Active optimization variables
|
---|
| 27 | # Variables listed here will be set as defined in the appropriate
|
---|
| 28 | # file in opt_config.d/; others will be ignored.
|
---|
| 29 | ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
---|
| 30 | OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
---|
| 31 |
|
---|
| 32 | #--- Load optimization modes
|
---|
| 33 | # To add modes, create a working template..
|
---|
| 34 | # cp opt_config.d/O3pipe opt_config.d/newMode
|
---|
| 35 | # ..and edit it as desired.
|
---|
| 36 | #
|
---|
| 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
|
---|
| 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
|
---|
| 45 | for mode in optimize/opt_config.d/* ; do
|
---|
| 46 | source $mode
|
---|
| 47 | done
|
---|