experimental
Last change
on this file since 89ddac0 was b5aa524, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Some textual improvements and corrections.
|
-
Property mode
set to
100644
|
File size:
969 bytes
|
Rev | Line | |
---|
[b5aa524] | 1 | #
|
---|
| 2 | #$Id$
|
---|
| 3 | #
|
---|
[c205656] | 4 | #####
|
---|
| 5 | #
|
---|
| 6 | # MODE defOpt_fPIC configuration
|
---|
| 7 | #
|
---|
[b5aa524] | 8 | # WARNING: Do not edit this mode unless you know what you are
|
---|
| 9 | # doing. It's required to build Zlib.
|
---|
| 10 | #
|
---|
[c205656] | 11 | # Usage: - Apply optimization string to each variable
|
---|
| 12 | # - "unset" will cause the variable to be not set
|
---|
| 13 | # instead of just set to null.
|
---|
| 14 | #
|
---|
[b5aa524] | 15 | # Use this as an example for defOpt_myMode combined modes
|
---|
| 16 | #
|
---|
[c205656] | 17 | #####
|
---|
| 18 |
|
---|
| 19 | # Inherit optimizations from DEF_OPT_MODE
|
---|
| 20 | source optimize/opt_config.d/${DEF_OPT_MODE}
|
---|
| 21 |
|
---|
| 22 | # Append " -fPIC" to default *C{,XX}FLAGS and retain other defaults
|
---|
| 23 | for OPT_VAR in $ACTIVE_OPT_VARS ; do
|
---|
| 24 | case $OPT_VAR in
|
---|
| 25 | CFLAGS | CXXFLAGS | OTHER_CFLAGS | OTHER_CXXFLAGS)
|
---|
| 26 | if [[ "$(eval "echo \$${OPT_VAR}_${DEF_OPT_MODE}")" != "unset" ]] ; then
|
---|
| 27 | eval ${OPT_VAR}_defOpt_fPIC=\$${OPT_VAR}_${DEF_OPT_MODE}\" -fPIC\"
|
---|
| 28 | else
|
---|
| 29 | eval ${OPT_VAR}_defOpt_fPIC="unset"
|
---|
| 30 | fi
|
---|
| 31 | ;;
|
---|
| 32 | *)
|
---|
| 33 | eval ${OPT_VAR}_defOpt_fPIC=\$${OPT_VAR}_${DEF_OPT_MODE}
|
---|
| 34 | ;;
|
---|
| 35 | esac
|
---|
| 36 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.