From patchwork Fri Dec 7 02:06:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 11321 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 58B7C44D7FC for ; Fri, 7 Dec 2018 04:06:25 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A3A8468A668; Fri, 7 Dec 2018 04:06:15 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it1-f195.google.com (mail-it1-f195.google.com [209.85.166.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0133968A668 for ; Fri, 7 Dec 2018 04:06:08 +0200 (EET) Received: by mail-it1-f195.google.com with SMTP id a6so4835820itl.4 for ; Thu, 06 Dec 2018 18:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NksVbnsv0nsEFiESJSbQ57qk4RACTRRyvN0xnoNAm7k=; b=fom+FBdTOxnAoenpwaPbEv4vt5Kb+rfUF2uhnYGq1BEB0HHqUIzWWq6Owg17LnI8ih UZ7cw6ZXacvl9BVs483uSnTDuK5b4wZtvnDiyF+/iu8mixlj0CIyztheuy/ZTvmo36gd EgAyvIuCD9mF2rw4B7kkClKlKIZbJjy8kFneHk8SK7j6nNGDvxq0Zr81iJ0OCtbyZ/H2 nvsmYT3VAarFNoAGeP2SrJIl6S57+rj6rzTf15Ol3DXNlUtpxwAKYK51co0RLbLo5gpx SiiqDvCnSKMbLY7GxegHCwcksMbNdHKXrz9QSpwySfq/Y5deTEHXGxBDIMh+otz9bUFc NmAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NksVbnsv0nsEFiESJSbQ57qk4RACTRRyvN0xnoNAm7k=; b=SFCMxvLFbnuTtAMF/3lilq9ItVJz47e8w9nivJZxPvmDgXtxlpF1+guklWU7sSFqqt SzPkO1dD+uflAV9n1+HD7kxJMNE2V/bpE6Tr+SlEJrk0SDVbS+v4uHR3QJG2hvtNFLis KCDHz89T2bgKqzqp0/oU6764CP0Qc5EU/RxoVCVAS9dKvZD3XF2JxxCnGmHHTToAC4jj xIcHK+hrf0wwb/7UgsgR+pK6FvTDi2J04GASWqemgfVGxOsCBZkIEfjpQvTj5TblBrrL nj6TzHJLe1wNOR3DbK57i5hnDSJFiwdIV9ZgrgRfhqh0xyfm7w9qUxNV9+nOcyZVIQj/ yKMA== X-Gm-Message-State: AA+aEWbTLQqzt8quIsE7SdMZVjITWvMSDy3DD7bGWaqqKqghrOeFzaae EoPuK3Vq0aWCKIaKVEipAYP2qVmGa8ibsWmLF0vjoQ== X-Google-Smtp-Source: AFSGD/VfxPnFa46Za39uXfZwootLiNVafb9ZYl6Jfx8rwsQ/sUhNilF6VzSGeoTc/27hATcBzO0ogci7GMAycWR75wI= X-Received: by 2002:a24:130a:: with SMTP id 10mr692481itz.58.1544148376639; Thu, 06 Dec 2018 18:06:16 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:5f11:0:0:0:0:0 with HTTP; Thu, 6 Dec 2018 18:06:15 -0800 (PST) In-Reply-To: References: From: Carl Eugen Hoyos Date: Fri, 7 Dec 2018 03:06:15 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH]configure: Default to clang for Android X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! I believe the Android documentation indicates that gcc will be removed from ndk. Attached patch changes the default to "clang" for --target-os=android. Now with patch. Please comment, Carl Eugen From 9c63579a1c0538f3c5f3dd8189eaedf28e87ce49 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 7 Dec 2018 00:11:17 +0100 Subject: [PATCH] configure: Use "clang" as cc_default for Android. --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 642c13d..6488c63 100755 --- a/configure +++ b/configure @@ -4129,6 +4129,11 @@ if test -n "$cross_prefix"; then enable cross_compile fi +set_default target_os +if test "$target_os" = android; then + cc_default="clang" +fi + ar_default="${cross_prefix}${ar_default}" cc_default="${cross_prefix}${cc_default}" cxx_default="${cross_prefix}${cxx_default}" @@ -4145,7 +4150,7 @@ windres_default="${cross_prefix}${windres_default}" sysinclude_default="${sysroot}/usr/include" set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \ - target_exec target_os x86asmexe nvcc + target_exec x86asmexe nvcc enabled cross_compile || host_cc_default=$cc set_default host_cc -- 1.7.10.4