ICU-7721 Check to see if both CXXFLAGS and CFLAGS were not set already.

X-SVN-Rev: 28770
This commit is contained in:
Michael Ow 2010-10-07 03:34:53 +00:00
parent 0c59484979
commit d483c7c807
2 changed files with 14 additions and 2 deletions

View file

@ -3843,10 +3843,16 @@ if test "$GCC" = yes; then
if test "$CFLAGS" = ""; then
if test "$ENABLE_DEBUG" = 1; then
CFLAGS=-g
CXXFLAGS=-g
fi
if test "$ENABLE_RELEASE" = 1; then
CFLAGS="$CFLAGS -O2"
fi
fi
if test "$CXXFLAGS" = ""; then
if test "$ENABLE_DEBUG" = 1; then
CXXFLAGS=-g
fi
if test "$ENABLE_RELEASE" = 1; then
CXXFLAGS="$CXXFLAGS -O2"
fi
fi

View file

@ -120,10 +120,16 @@ if test "$GCC" = yes; then
if test "$CFLAGS" = ""; then
if test "$ENABLE_DEBUG" = 1; then
CFLAGS=-g
CXXFLAGS=-g
fi
if test "$ENABLE_RELEASE" = 1; then
CFLAGS="$CFLAGS -O2"
fi
fi
if test "$CXXFLAGS" = ""; then
if test "$ENABLE_DEBUG" = 1; then
CXXFLAGS=-g
fi
if test "$ENABLE_RELEASE" = 1; then
CXXFLAGS="$CXXFLAGS -O2"
fi
fi