1 | #####
|
---|
2 | #
|
---|
3 | # optimization configuration file
|
---|
4 | #
|
---|
5 | #####
|
---|
6 | #
|
---|
7 | #$Id$
|
---|
8 | #
|
---|
9 |
|
---|
10 | #--- List of packages that have issues with parallelization.
|
---|
11 | ## As of December 21st, 2019, there seems to be none...
|
---|
12 | # This list may be different for you.
|
---|
13 | #BLACK_LIST="attr autoconf coreutils dejagnu gettext gperf groff man-db vim"
|
---|
14 | # Rationale for attr, coreutils, gperf: the tests do not pass with -jX
|
---|
15 | # CLFS packages (not tested on December 21st, 2019)
|
---|
16 | #BLACK_LIST="$BLACK_LIST libee"
|
---|
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.
|
---|
26 | DEF_OPT_MODE=noOpt
|
---|
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
|
---|