Bug 564319 - Allow building ctypes on Android, r=ted

This commit is contained in:
Vladimir Vukicevic 2010-05-20 18:19:01 -07:00
Родитель a6804b9bac
Коммит d72543c9ef
1 изменённых файлов: 15 добавлений и 0 удалений

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

@ -268,6 +268,12 @@ if test "$target" = "arm-android-eabi" ; then
HOST_LDFLAGS=" "
fi
# save these for libffi's subconfigure,
# which doesn't know how to figure this stuff out on its own
ANDROID_CFLAGS="$CFLAGS"
ANDROID_CPPFLAGS="$CPPFLAGS"
ANDROID_LDFLAGS="$LDFLAGS"
AC_DEFINE(ANDROID)
AC_DEFINE(FORCE_LITTLE_ENDIAN)
fi
@ -5356,6 +5362,15 @@ if test "$JS_HAS_CTYPES"; then
*-mingw*)
ac_configure_args="$ac_configure_args --build=$build --host=${target_cpu}-${target_os} HOST_CC=\"$HOST_CC\" CC=\"$CC\""
;;
*-android*)
CFLAGS="$ANDROID_CFLAGS"
CPPFLAGS="$ANDROID_CPPFLAGS"
LDFLAGS="$ANDROID_LDFLAGS"
export CC CPP LD CPPFLAGS CFLAGS LDFLAGS
ac_configure_args="$ac_configure_args --build=$build --host=${target_cpu}-${target_os} HOST_CC=\"$HOST_CC\""
;;
*)
ac_configure_args="$ac_configure_args --build=$build --host=$target HOST_CC=\"$HOST_CC\" CC=\"$CC\""
;;