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