[5f7d08f] | 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
|
---|
| 15 | source optimize/opt_config.d/$DEF_OPT_LVL
|
---|
| 16 |
|
---|
| 17 | eval CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
|
---|
| 18 | eval CXXFLAGS_Zlib_base=\$CXXFLAGS_${DEF_OPT_LVL}
|
---|
| 19 | eval LDFLAGS_Zlib_base=\$LDFLAGS_${DEF_OPT_LVL}
|
---|
| 20 |
|
---|
| 21 | eval OTHER_CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
|
---|
| 22 | eval OTHER_CXXFLAGS_Zlib_base=\$OTHER_CXXFLAGS_${DEF_OPT_LVL}
|
---|
| 23 | eval OTHER_LDFLAGS_Zlib_base=\$OTHER_LDFLAGS_${DEF_OPT_LVL}
|
---|
| 24 |
|
---|
| 25 | # Set the actual values for Zlib mode
|
---|
| 26 | if [[ "$CFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 27 | CFLAGS_Zlib=$CFLAGS_Zlib_base" -fPIC"
|
---|
| 28 | else
|
---|
| 29 | CFLAGS_Zlib="unset"
|
---|
| 30 | fi
|
---|
| 31 | if [[ "$CXXFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 32 | CXXFLAGS_Zlib=$CXXFLAGS_Zlib_base" -fPIC"
|
---|
| 33 | else
|
---|
| 34 | CXXFLAGS_Zlib="unset"
|
---|
| 35 | fi
|
---|
| 36 | if [[ "$LDFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 37 | LDFLAGS_Zlib=$LDFLAGS_Zlib_base
|
---|
| 38 | else
|
---|
| 39 | LDFLAGS_Zlib="unset"
|
---|
| 40 | fi
|
---|
| 41 |
|
---|
| 42 | if [[ "$OTHER_CFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 43 | OTHER_CFLAGS_Zlib=$OTHER_CFLAGS_Zlib_base" -fPIC"
|
---|
| 44 | else
|
---|
| 45 | OTHER_CFLAGS_Zlib="unset"
|
---|
| 46 | fi
|
---|
| 47 | if [[ "$OTHER_CXXFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 48 | OTHER_CXXFLAGS_Zlib=$OTHER_CXXFLAGS_Zlib_base" -fPIC"
|
---|
| 49 | else
|
---|
| 50 | OTHER_CXXFLAGS_Zlib="unset"
|
---|
| 51 | fi
|
---|
| 52 | if [[ "$OTHER_LDFLAGS_Zlib_base" != "unset" ]]; then
|
---|
| 53 | OTHER_LDFLAGS_Zlib=$OTHER_LDFLAGS_Zlib_base
|
---|
| 54 | else
|
---|
| 55 | OTHER_LDFLAGS_Zlib="unset"
|
---|
| 56 | fi
|
---|