Added new axample file about combined modes.

This commit is contained in:
Manuel Canales Esparcia 2006-05-06 14:31:24 +00:00
parent 5f7d08f1ef
commit 796ecad77e
2 changed files with 24 additions and 1 deletions

View file

@ -31,7 +31,7 @@ ACTIVE_OPT_VARS="CFLAGS CXXFLAGS LDFLAGS \
# cp opt_config.d/defOpt opt_config.d/newMode # cp opt_config.d/defOpt opt_config.d/newMode
# ..and edit it as desired. # ..and edit it as desired.
# #
# To inherit another mode and add to it, see opt_config.d/defOpt_fPIC # To inherit another mode and add to it, see opt_config.d/defOpt_march
# as an example. Given opt_config.d/modeA_modeB_modeC, modeB inherits # as an example. Given opt_config.d/modeA_modeB_modeC, modeB inherits
# the optimizations of modeA by sourcing it, and modeC inherits those # the optimizations of modeA by sourcing it, and modeC inherits those
# of modeB (which includes those of modeA). # of modeB (which includes those of modeA).

View file

@ -0,0 +1,23 @@
#
#$Id$
#
#####
#
# MODE defOpt_march configuration
#
# Usage: - Apply optimization string to each variable
# - "unset" will cause the variable to be not set
# instead of just set to null.
#
#####
# Inherit optimizations from defOpt
source optimize/opt_config.d/defOpt
CFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -march=pentium4"
CXXFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -march=pentium4"
LDFLAGS_defOpt_fPIC=$LDFLAGS_defOpt
OTHER_CFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -march=pentium4"
OTHER_CXXFLAGS_defOpt_fPIC=$CXXFLAGS_defOpt" -march=pentium4"
OTHER_LDFLAGS_defOpt_fPIC=$LDFLAGS_defOpt