Commit 126023fb authored by Nathan Froyd's avatar Nathan Froyd Committed by Mike Perry
Browse files

correctly configure ctypes in cross compilation conditions

Just unconditionally export things for Android and everything else.
parent cff4f5c3
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -4552,16 +4552,9 @@ if test "$JS_HAS_CTYPES" -a -z "$MOZ_NATIVE_FFI"; then
    ac_configure_args="$ac_configure_args --with-pic"
  fi
  if test "$CROSS_COMPILE"; then
    case "$target" in
    *-android*|*-linuxandroid*)
    export AS CC CXX CPP LD AR RANLIB STRIP CPPFLAGS CFLAGS LDFLAGS

    ac_configure_args="$ac_configure_args --build=$build --host=$target HOST_CC=\"$HOST_CC\""
      ;;
    *)
      ac_configure_args="$ac_configure_args --build=$build --host=$target HOST_CC=\"$HOST_CC\" CC=\"$CC\""
      ;;
    esac
  fi
  if test "$_MSC_VER"; then
    # Use a wrapper script for cl and ml that looks more like gcc.