1 | #####
|
---|
2 | #
|
---|
3 | # optimization configuration file
|
---|
4 | #
|
---|
5 | #####
|
---|
6 | #
|
---|
7 | #$Id$
|
---|
8 | #
|
---|
9 |
|
---|
10 | #--- Default optimization mode
|
---|
11 | # This level is overridden by definitions in common/opt_override;
|
---|
12 | # in this way, packages can be tuned independently. For example,
|
---|
13 | # if you have trouble building a package in mode defOpt, add
|
---|
14 | # the package to common/opt_override with a different mode.
|
---|
15 | DEF_OPT_LVL=defOpt
|
---|
16 |
|
---|
17 |
|
---|
18 | #--- Active optimization variables
|
---|
19 | # Variables listed here will be set as defined in the appropriate
|
---|
20 | # file in common/opt_config.d/; others will be ignored.
|
---|
21 | ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
---|
22 | OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
---|
23 |
|
---|
24 | #--- Load optimization modes
|
---|
25 | # To add modes, create a working template..
|
---|
26 | # cp opt_config.d/defOpt opt_config.d/newMode
|
---|
27 | # ..and edit it as desired.
|
---|
28 | #
|
---|
29 | # To inherit another mode and add to it, see opt_config.d/defOpt_fPIC
|
---|
30 | # as an example. Given opt_config.d/modeA_modeB_modeC, modeB inherits
|
---|
31 | # the optimizations of modeA by sourcing it, and modeC inherits those
|
---|
32 | # of modeB (which includes those of modeA).
|
---|
33 | #
|
---|
34 | # Add packages that are to use this mode to opt_override with:
|
---|
35 | # echo 'myPkg newMode' >> opt_override
|
---|
36 | for mode in $COMMON_DIR/opt_config.d/* ; do
|
---|
37 | source $mode
|
---|
38 | done
|
---|