source: common/opt_config@ d20c553

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
17DEF_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.
27CFLAGS_0="unset"
28CXXFLAGS_0=$CFLAGS_0
29LDFLAGS_0="unset"
30
31
32#--- LEVEL 1
33CFLAGS_1="-O2 -pipe"
34CXXFLAGS_1=$CFLAGS_1
35LDFLAGS_1=""
36
37#--- LEVEL 2
38CFLAGS_2="-O3 -pipe"
39CXXFLAGS_2=$CFLAGS_2
40LDFLAGS_2=""
41
42#--- LEVEL 3
43CFLAGS_3="-O3 -march=pentium4 -pipe -s"
44CXXFLAGS_3=$CFLAGS_3
45LDFLAGS_3="-s"
46
47#--- LEVEL noOpt_noSymbols
48CFLAGS_noOpt_noSymbols="-s"
49CXXFLAGS_noOpt_noSymbols=$CFLAGS_noOpt_noSymbols
50LDFLAGS_noOpt_noSymbols="-s"
Note: See TracBrowser for help on using the repository browser.