Bug 956931 - ICU linker error doing 32-bit and universal builds. r=mshal

This commit is contained in:
Steven Michaud 2014-01-08 13:48:45 -06:00
Родитель 616492aca6
Коммит 9c31e8f8c8
1 изменённых файлов: 11 добавлений и 6 удалений

Просмотреть файл

@ -4324,7 +4324,7 @@ if test -n "$ENABLE_INTL_API" -a -z "$MOZ_NATIVE_ICU"; then
CC="$HOST_CC" CXX="$HOST_CXX" LD="$HOST_LD" \ CC="$HOST_CC" CXX="$HOST_CXX" LD="$HOST_LD" \
CFLAGS="$HOST_ICU_CFLAGS $HOST_OPTIMIZE_FLAGS" \ CFLAGS="$HOST_ICU_CFLAGS $HOST_OPTIMIZE_FLAGS" \
CPPFLAGS="$ICU_CPPFLAGS" \ CPPFLAGS="$ICU_CPPFLAGS" \
CXXFLAGS="$HOST_ICU_CXXFLAGS $HOST_OPTIMZIE_FLAGS" \ CXXFLAGS="$HOST_ICU_CXXFLAGS $HOST_OPTIMIZE_FLAGS" \
LDFLAGS="$HOST_LDFLAGS" \ LDFLAGS="$HOST_LDFLAGS" \
$SHELL $abs_srcdir/../../intl/icu/source/runConfigureICU \ $SHELL $abs_srcdir/../../intl/icu/source/runConfigureICU \
$HOST_ICU_BUILD_OPTS \ $HOST_ICU_BUILD_OPTS \
@ -4364,11 +4364,16 @@ if test -n "$ENABLE_INTL_API" -a -z "$MOZ_NATIVE_ICU"; then
if test -n "$MOZ_DEBUG" -o "MOZ_DEBUG_SYMBOLS"; then if test -n "$MOZ_DEBUG" -o "MOZ_DEBUG_SYMBOLS"; then
ICU_CFLAGS="$ICU_CFLAGS $MOZ_DEBUG_FLAGS" ICU_CFLAGS="$ICU_CFLAGS $MOZ_DEBUG_FLAGS"
ICU_CXXFLAGS="$ICU_CXXFLAGS $MOZ_DEBUG_FLAGS" ICU_CXXFLAGS="$ICU_CXXFLAGS $MOZ_DEBUG_FLAGS"
if test -n "$CROSS_COMPILE" -a "$OS_TARGET" = "Darwin"; then if test -n "$CROSS_COMPILE" -a "$OS_TARGET" = "Darwin" \
# Bug 951758: Cross-OSX builds have issues with -g because it -a "$HOST_OS_ARCH" != "Darwin"
# tries to run dsymutil then
ICU_CFLAGS=`echo $ICU_CFLAGS | sed 's|-g||g'` # Bug 951758: Cross-OSX builds with non-Darwin hosts have issues
ICU_CXXFLAGS=`echo $ICU_CXXFLAGS | sed 's|-g||g'` # with -g and friends (like -gdwarf and -gfull) because they try
# to run dsymutil
changequote(,)
ICU_CFLAGS=`echo $ICU_CFLAGS | sed 's|-g[^ \t]*||g'`
ICU_CXXFLAGS=`echo $ICU_CXXFLAGS | sed 's|-g[^ \t]*||g'`
changequote([,])
fi fi
ICU_LDFLAGS="$MOZ_DEBUG_LDFLAGS" ICU_LDFLAGS="$MOZ_DEBUG_LDFLAGS"