source: optimize/opt_config.d/defOpt_fPIC@ 3fa4147

ablfs-more trunk
Last change on this file since 3fa4147 was fd4a798, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove $Id$ comments, they are useless with git

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