source: optimize/opt_config.d/Zlib@ 796ecad

experimental
Last change on this file since 796ecad was 5f7d08f, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Fixed Zlib optimizations to be based on DEF_OPT_LVL.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#
2#$Id$
3#
4#####
5#
6# MODE Zlib configuration
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#####
13
14# Inherit optimizations from DEF_OPT_LVL
15source optimize/opt_config.d/$DEF_OPT_LVL
16
17eval CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
18eval CXXFLAGS_Zlib_base=\$CXXFLAGS_${DEF_OPT_LVL}
19eval LDFLAGS_Zlib_base=\$LDFLAGS_${DEF_OPT_LVL}
20
21eval OTHER_CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
22eval OTHER_CXXFLAGS_Zlib_base=\$OTHER_CXXFLAGS_${DEF_OPT_LVL}
23eval OTHER_LDFLAGS_Zlib_base=\$OTHER_LDFLAGS_${DEF_OPT_LVL}
24
25# Set the actual values for Zlib mode
26if [[ "$CFLAGS_Zlib_base" != "unset" ]]; then
27 CFLAGS_Zlib=$CFLAGS_Zlib_base" -fPIC"
28else
29 CFLAGS_Zlib="unset"
30fi
31if [[ "$CXXFLAGS_Zlib_base" != "unset" ]]; then
32 CXXFLAGS_Zlib=$CXXFLAGS_Zlib_base" -fPIC"
33else
34 CXXFLAGS_Zlib="unset"
35fi
36if [[ "$LDFLAGS_Zlib_base" != "unset" ]]; then
37 LDFLAGS_Zlib=$LDFLAGS_Zlib_base
38else
39 LDFLAGS_Zlib="unset"
40fi
41
42if [[ "$OTHER_CFLAGS_Zlib_base" != "unset" ]]; then
43 OTHER_CFLAGS_Zlib=$OTHER_CFLAGS_Zlib_base" -fPIC"
44else
45 OTHER_CFLAGS_Zlib="unset"
46fi
47if [[ "$OTHER_CXXFLAGS_Zlib_base" != "unset" ]]; then
48 OTHER_CXXFLAGS_Zlib=$OTHER_CXXFLAGS_Zlib_base" -fPIC"
49else
50 OTHER_CXXFLAGS_Zlib="unset"
51fi
52if [[ "$OTHER_LDFLAGS_Zlib_base" != "unset" ]]; then
53 OTHER_LDFLAGS_Zlib=$OTHER_LDFLAGS_Zlib_base
54else
55 OTHER_LDFLAGS_Zlib="unset"
56fi
Note: See TracBrowser for help on using the repository browser.