2006-05-04 00:03:58 +02:00
|
|
|
#####
|
|
|
|
#
|
|
|
|
# optimization configuration file
|
|
|
|
#
|
|
|
|
#####
|
|
|
|
#
|
2006-05-05 19:41:56 +02:00
|
|
|
#$Id$
|
|
|
|
#
|
2006-05-04 00:03:58 +02:00
|
|
|
|
2006-05-06 13:06:07 +02:00
|
|
|
#--- Extra flags passed to the packages make commands
|
|
|
|
# "unset" will cause the variable to be not set
|
|
|
|
# instead of just set to null.
|
|
|
|
MAKEFLAGS="-j3"
|
|
|
|
|
2006-05-11 21:15:34 +02:00
|
|
|
#--- List of packages that don't support well MAKEFLAGS.
|
|
|
|
# This list may be different for you.
|
|
|
|
BLACK_LIST="dejagnu gettext groff"
|
|
|
|
|
2006-05-05 19:41:56 +02:00
|
|
|
#--- Default optimization mode
|
2006-05-08 20:10:58 +02:00
|
|
|
# This mode is overridden by definitions in opt_override;
|
2006-05-05 19:41:56 +02:00
|
|
|
# in this way, packages can be tuned independently. For example,
|
2006-05-08 21:42:27 +02:00
|
|
|
# if you have trouble building a package in the mode set here, add
|
2006-05-05 20:35:55 +02:00
|
|
|
# the package to opt_override with a different mode.
|
2006-05-08 21:42:27 +02:00
|
|
|
#
|
|
|
|
# Not set here combined modes of form defOpt_myMode.
|
|
|
|
# Combined modes of form modeA_modeB can be set here.
|
2006-05-08 20:10:58 +02:00
|
|
|
DEF_OPT_MODE=O3pipe
|
2006-05-04 00:03:58 +02:00
|
|
|
|
|
|
|
|
2006-05-05 19:41:56 +02:00
|
|
|
#--- Active optimization variables
|
|
|
|
# Variables listed here will be set as defined in the appropriate
|
2006-05-05 20:35:55 +02:00
|
|
|
# file in opt_config.d/; others will be ignored.
|
2006-05-05 19:41:56 +02:00
|
|
|
ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
|
|
|
|
OTHER_CFLAGS OTHER_CXXFLAGS OTHER_LDFLAGS"
|
2006-05-04 00:03:58 +02:00
|
|
|
|
2006-05-05 19:41:56 +02:00
|
|
|
#--- Load optimization modes
|
|
|
|
# To add modes, create a working template..
|
2006-05-08 20:10:58 +02:00
|
|
|
# cp opt_config.d/O3pipe opt_config.d/newMode
|
2006-05-05 19:41:56 +02:00
|
|
|
# ..and edit it as desired.
|
|
|
|
#
|
2006-05-08 20:10:58 +02:00
|
|
|
# To inherit another mode and add to it, see opt_config.d/O3pipe_march
|
|
|
|
# or opt_config.d/defOpt_fPIC as examples for two different ways of
|
|
|
|
# doing it. Given opt_config.d/modeA_modeB_modeC, modeB inherits
|
2006-05-05 19:41:56 +02:00
|
|
|
# the optimizations of modeA by sourcing it, and modeC inherits those
|
|
|
|
# of modeB (which includes those of modeA).
|
|
|
|
#
|
|
|
|
# Add packages that are to use this mode to opt_override with:
|
|
|
|
# echo 'myPkg newMode' >> opt_override
|
2006-05-05 20:35:55 +02:00
|
|
|
for mode in optimize/opt_config.d/* ; do
|
2006-05-05 19:41:56 +02:00
|
|
|
source $mode
|
|
|
|
done
|