source: optimize/opt_config.d/defOpt_fPIC@ 6caa5b8

ablfs-more legacy trunk
Last change on this file since 6caa5b8 was 1b65a84, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Merged optimize code from experimental branch.

  • Property mode set to 100644
File size: 969 bytes
Line 
1#
2#$Id$
3#
4#####
5#
6# MODE defOpt_fPIC configuration
7#
8# WARNING: Do not edit this mode unless you know what you are
9# doing. It's required to build Zlib.
10#
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#
15# Use this as an example for defOpt_myMode combined modes
16#
17#####
18
19# Inherit optimizations from DEF_OPT_MODE
20source optimize/opt_config.d/${DEF_OPT_MODE}
21
22# Append " -fPIC" to default *C{,XX}FLAGS and retain other defaults
23for 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
36done
Note: See TracBrowser for help on using the repository browser.