experimental
Last change
on this file since d20c553 was 17c7894, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
POC for optimizations code.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | #####
|
---|
2 | #
|
---|
3 | # optimization configuration file
|
---|
4 | #
|
---|
5 | #####
|
---|
6 |
|
---|
7 | #--- Default optimization level
|
---|
8 | # This level is overridden by definitions in common/def_opt_override;
|
---|
9 | # in this way, packages can be tuned independently. For example,
|
---|
10 | # if you have trouble building a package at level 3, add it to
|
---|
11 | # common/def_opt_override as an alternate level.
|
---|
12 | #
|
---|
13 | # Optimization levels need not be numeric; custom strings
|
---|
14 | # can be defined.
|
---|
15 | # For example: CFLAGS_myLevel="-O3 -pipe"
|
---|
16 | # cat "fooPkg myLevel" >> common/def_opt_override
|
---|
17 | DEF_OPT_LVL=3
|
---|
18 |
|
---|
19 | #--- Optimization level definitions
|
---|
20 | # Usage: - Apply optimization string at any given level
|
---|
21 | # - "unset" will cause the variable to be not set
|
---|
22 | # instead of set to null
|
---|
23 | #--- LEVEL 0
|
---|
24 | # WARNING: Do not edit this level unless you know what you are
|
---|
25 | # doing. By default, this is set to affect packages
|
---|
26 | # which may have problems with optimization.
|
---|
27 | CFLAGS_0="unset"
|
---|
28 | CXXFLAGS_0=$CFLAGS_0
|
---|
29 | LDFLAGS_0="unset"
|
---|
30 |
|
---|
31 |
|
---|
32 | #--- LEVEL 1
|
---|
33 | CFLAGS_1="-O2 -pipe"
|
---|
34 | CXXFLAGS_1=$CFLAGS_1
|
---|
35 | LDFLAGS_1=""
|
---|
36 |
|
---|
37 | #--- LEVEL 2
|
---|
38 | CFLAGS_2="-O3 -pipe"
|
---|
39 | CXXFLAGS_2=$CFLAGS_2
|
---|
40 | LDFLAGS_2=""
|
---|
41 |
|
---|
42 | #--- LEVEL 3
|
---|
43 | CFLAGS_3="-O3 -march=pentium4 -pipe -s"
|
---|
44 | CXXFLAGS_3=$CFLAGS_3
|
---|
45 | LDFLAGS_3="-s"
|
---|
46 |
|
---|
47 | #--- LEVEL noOpt_noSymbols
|
---|
48 | CFLAGS_noOpt_noSymbols="-s"
|
---|
49 | CXXFLAGS_noOpt_noSymbols=$CFLAGS_noOpt_noSymbols
|
---|
50 | LDFLAGS_noOpt_noSymbols="-s"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.