зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1260624 - Move CROSS_COMPILE to moz.configure. r=ted
Note that this removes force-setting cross_compiling to yes in old-configure, which wasn't working because every AC_TRY_COMPILE resets it with $ac_cv_prog_cc_cross or $ac_cv_prog_cxx_cross.
This commit is contained in:
Родитель
ad20b091b6
Коммит
1f729885a7
|
@ -183,14 +183,6 @@ AC_CHECK_PROGS(LD, "${target_alias}-ld" "${target}-ld", :)
|
|||
AC_CHECK_PROGS(STRIP, "${target_alias}-strip" "${target}-strip", :)
|
||||
AC_CHECK_PROGS(WINDRES, "${target_alias}-windres" "${target}-windres", :)
|
||||
AC_CHECK_PROGS(OTOOL, "${target_alias}-otool" "${target}-otool", :)
|
||||
AC_DEFINE(CROSS_COMPILE)
|
||||
CROSS_COMPILE=1
|
||||
|
||||
dnl If we cross compile for ppc on Mac OS X x86, cross_compiling will
|
||||
dnl dnl have erroneously been set to "no", because the x86 build host is
|
||||
dnl dnl able to run ppc code in a translated environment, making a cross
|
||||
dnl dnl compiler appear native. So we override that here.
|
||||
cross_compiling=yes
|
||||
])
|
||||
|
||||
AC_DEFUN([MOZ_CXX11],
|
||||
|
|
|
@ -469,6 +469,16 @@ def target(value, host, shell):
|
|||
return split_triplet(config_sub(shell, value[0]))
|
||||
|
||||
|
||||
@depends(host, target)
|
||||
@checking('whether cross compiling')
|
||||
def cross_compiling(host, target):
|
||||
return host != target
|
||||
|
||||
set_config('CROSS_COMPILE', cross_compiling)
|
||||
set_define('CROSS_COMPILE', cross_compiling)
|
||||
add_old_configure_assignment('CROSS_COMPILE', cross_compiling)
|
||||
|
||||
|
||||
# Autoconf needs these set
|
||||
@depends(host)
|
||||
def host_for_old_configure(host):
|
||||
|
|
|
@ -2724,7 +2724,6 @@ AC_SUBST(OS_COMPILE_CFLAGS)
|
|||
AC_SUBST(OS_COMPILE_CXXFLAGS)
|
||||
AC_SUBST(OS_LDFLAGS)
|
||||
AC_SUBST(OS_LIBS)
|
||||
AC_SUBST(CROSS_COMPILE)
|
||||
|
||||
AC_SUBST(HOST_CC)
|
||||
AC_SUBST(HOST_CXX)
|
||||
|
|
|
@ -266,15 +266,6 @@ dnl ========================================================
|
|||
dnl AR_FLAGS set here so HOST_AR_FLAGS can be set correctly (see bug 538269)
|
||||
AR_FLAGS='crs $@'
|
||||
|
||||
if test -z "$COMPILE_ENVIRONMENT"; then
|
||||
if test "$target" != "$host"; then
|
||||
# Assert that we're cross compiling, but don't require a compile toolchain (as
|
||||
# MOZ_CROSS_COMPILER does below).
|
||||
CROSS_COMPILE=1
|
||||
AC_DEFINE(CROSS_COMPILE)
|
||||
fi
|
||||
fi # !COMPILE_ENVIRONMENT
|
||||
|
||||
if test "$COMPILE_ENVIRONMENT"; then
|
||||
|
||||
if test "$target" != "$host"; then
|
||||
|
@ -7513,7 +7504,6 @@ AC_SUBST(OS_COMPILE_CFLAGS)
|
|||
AC_SUBST(OS_COMPILE_CXXFLAGS)
|
||||
AC_SUBST(OS_LDFLAGS)
|
||||
AC_SUBST(OS_LIBS)
|
||||
AC_SUBST(CROSS_COMPILE)
|
||||
AC_SUBST(WCHAR_CFLAGS)
|
||||
|
||||
AC_SUBST(HOST_CC)
|
||||
|
|
Загрузка…
Ссылка в новой задаче