experimental
Last change
on this file since 024e3de was c205656, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Applied optimization and makeflags patches from Jeremy Byron.
Renamed some files.
|
-
Property mode
set to
100644
|
File size:
788 bytes
|
Line | |
---|
1 | #####
|
---|
2 | #
|
---|
3 | # MODE defOpt_fPIC configuration
|
---|
4 | #
|
---|
5 | # Usage: - Apply optimization string to each variable
|
---|
6 | # - "unset" will cause the variable to be not set
|
---|
7 | # instead of just set to null.
|
---|
8 | #
|
---|
9 | #####
|
---|
10 |
|
---|
11 | # Inherit optimizations from DEF_OPT_MODE
|
---|
12 | source optimize/opt_config.d/${DEF_OPT_MODE}
|
---|
13 |
|
---|
14 | # Append " -fPIC" to default *C{,XX}FLAGS and retain other defaults
|
---|
15 | for OPT_VAR in $ACTIVE_OPT_VARS ; do
|
---|
16 | case $OPT_VAR in
|
---|
17 | CFLAGS | CXXFLAGS | OTHER_CFLAGS | OTHER_CXXFLAGS)
|
---|
18 | if [[ "$(eval "echo \$${OPT_VAR}_${DEF_OPT_MODE}")" != "unset" ]] ; then
|
---|
19 | eval ${OPT_VAR}_defOpt_fPIC=\$${OPT_VAR}_${DEF_OPT_MODE}\" -fPIC\"
|
---|
20 | else
|
---|
21 | eval ${OPT_VAR}_defOpt_fPIC="unset"
|
---|
22 | fi
|
---|
23 | ;;
|
---|
24 | *)
|
---|
25 | eval ${OPT_VAR}_defOpt_fPIC=\$${OPT_VAR}_${DEF_OPT_MODE}
|
---|
26 | ;;
|
---|
27 | esac
|
---|
28 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.