From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id DDF3D49331 for ; Mon, 8 Apr 2024 13:16:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1175C68D2DE; Mon, 8 Apr 2024 16:16:14 +0300 (EEST) Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AE26B68B931 for ; Mon, 8 Apr 2024 16:16:07 +0300 (EEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id C633C1800123 for ; Mon, 8 Apr 2024 09:16:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 08 Apr 2024 09:16:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1712582165; x= 1712668565; bh=oi8PiQqK9HVLIjkwEkp6dksistEcQFf7mkHek9GcvpY=; b=A dwmAdWUSMY/aKedIQxoptFc3RCkfL9qC0Z59sduFgZEft/bkgD1WrO/5xhMF1zz/ BfjCorTLHHIuOeMobEgeniiqa/mc1TH6dEjrr2pc4utqahR9jPBgskiaNqMiG/pz 5DD6EeqZfsv0yXDkDxVhfnA8hm+hTR8nes85IQZtMuDSQUZCwb88knfbEo3/BD6S bH0pE1Ux+aYrsb/xb2W6Qk79yJ2OkdBVI0uxILGlkVGFBBDP9cT1TOqnM+gVmb/r /HLiKb8VmUwBs9zn0oTFKBhM5z6y/ttectRHcDDdvzI124xtcgGisSeAqbEKygWk 3RXXOAxzhrEF0BZKOFYzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1712582165; x=1712668565; bh=oi8PiQqK9HVLI jkwEkp6dksistEcQFf7mkHek9GcvpY=; b=KdoYBpSJVqM/oeOLwhmknibuVtZjN Xr/4kqDCbbSKqdzkVSfGiaQvRIJrugu6QntvgUx2KsNml+AulhKCyP7tOkV54Sxu yp6V1JEjPtdRaoJL3WkgDroHMmhEyPGVYtyiwN+/ejWDX4z87h8QpcL0sWaErR/G IWyzjAFWQHORwl5HvJaWNv3eJm11i7/zvlbhV4G+hHqyD4M/Ki+mnC62/Yh0IqnM MwW+cDU7mltIVNnlG0Wu/kScmwm9AyEYRuMtiT2gSpJ43hhfmI31tydTCith/wDK 63k2THXw+4VinnOyRvh2eHcV8mvZXUEGiB3dP7XAhtR44jEVPGbZhMaPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegiedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdflrdcuffgvkhhkvghrfdcuoehjuggvkhesihhtrghnihhm uhhlrdhliheqnecuggftrfgrthhtvghrnhepgedvhfffuddugeehveeikeeifeefgfevff ektdehkeeifefhveeuteeufefhteetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepjhguvghksehithgrnhhimhhulhdrlhhi X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 8 Apr 2024 09:16:04 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Apr 2024 15:16:00 +0200 Message-ID: <20240408131600.81682-2-jdek@itanimul.li> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408131600.81682-1-jdek@itanimul.li> References: <20240408131600.81682-1-jdek@itanimul.li> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/2] configure: simplify bigendian check X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: The preferred way to use LTO is --enable-lto but often times packagers still end up with -flto in cflags for various reasons. Using grep on binary object files is brittle and relies on specific object representation, which in the case of LLVM bitcode, debug-info or other intermediary formats can fail silently. This patch changes the check to a more commonly used define for big-endian systems. More checks may need to be added in the future to cover legacy machines. Signed-off-by: J. Dekker --- configure | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure b/configure index 7b6f48e631..e787f13e0b 100755 --- a/configure +++ b/configure @@ -6120,11 +6120,7 @@ extern_prefix=${sym%%ff_extern*} check_cc pragma_deprecated "" '_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")' -# The global variable ensures the bits appear unchanged in the object file. -test_cc <