From patchwork Tue Apr 9 13:50:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 47985 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9c8d:b0:1a7:a0dc:8de5 with SMTP id mj13csp364010pzb; Tue, 9 Apr 2024 06:50:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUJ3BWOAYaEPMlIY+nlfz4dJXcl7L5c1pzpQjpVMvyjEd83s40EVVa25QBmqlw7/D5ajQFzJ28x+mbG08NJ2S8XkFN3V146mbhnxQ== X-Google-Smtp-Source: AGHT+IHfcZ1ZgqsIT8IGO9P01d6OJgBwwDsyVMJYFMwZ/JRs/ZVqUAgMFmbktH+VNBo3EtHhjj2Y X-Received: by 2002:a19:3844:0:b0:516:d86b:3d5a with SMTP id d4-20020a193844000000b00516d86b3d5amr6820744lfj.21.1712670654991; Tue, 09 Apr 2024 06:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712670654; cv=none; d=google.com; s=arc-20160816; b=YUUG8vX2xUiAvSUd2f4h2/67xYM+hB66pu2gcZwufzIGtZnijyLcqKeu1b65NVZeIh bysd5mPjljOR6TczGBrrPOxkRam7N2Fofzr9eqyftJi/ivdEa3MkWxbsP+IWo4bSEndU /XZKU1P7nWono7F9OtnYME/ajNObYQ45bP1vlsRlN4tNiuMTh7DIvOhIgwcMuk7C59vs bRLl++t/HxLiaHfBkul76+KMG1wr49MoGxija8ELTWONxjjPTOl6wYd3b4OUNMUpxows FEGjO8O6uqI9xylLmkyi70NpjffqiiUME+XZpbpWKZlPli6+RNhBDcT5L5Zv5kwcdRkt JzdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from:feedback-id :dkim-signature:dkim-signature:delivered-to; bh=g0N+N9I6aR4MHONG9T0eIQf9ozBQ9mR0NtUZTSX+vZ4=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=ZU9/YZ67bfYkxGdIwbBrvmAaR87+1g96j6huELYwR9wczcq2V08HJEq5h8nf/O1mpL dSm7sUFKOxcELKZ329ik0Q4DsbyN3JUIq7EUo320rRPnZ30Lu2YhEXwGKCdv/nFJN4Q0 5+H6z57qiuwOXoktiHTmMoo5Lv02j8fFmwyzknQ37ZcMiNZImd8hNAt1tCxSG0mowFrG jGfXrjyG6i8btMbHTqNw6RVT/JhscMlvSJuj2kQhudQIp558VhbL9vCR616ZhfKmgB8V D37PhZvMv7wrDml8ZHapGemm0Xmr87HSyUJjaA3LdUkTyVNwMfrv2MYIQ8v6q4oleiui SO6A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=KQLvpiP3; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=r73H0rOp; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hp14-20020a1709073e0e00b00a51dd117e48si1818941ejc.538.2024.04.09.06.50.51; Tue, 09 Apr 2024 06:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm3 header.b=KQLvpiP3; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=r73H0rOp; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E424268CBED; Tue, 9 Apr 2024 16:50:47 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B013368CBED for ; Tue, 9 Apr 2024 16:50:40 +0300 (EEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 376161C00144 for ; Tue, 9 Apr 2024 09:50:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 09 Apr 2024 09:50:38 -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:message-id:mime-version:reply-to:subject:subject:to :to; s=fm3; t=1712670637; x=1712757037; bh=TzOwnAwh2sSGRvehd+bp/ oFk6XsRP24qxpZ2AXjF4wE=; b=KQLvpiP3tPynaHgnj8OPLlTiA2c8dUap0avHm 1rjck1OZ5QgQe4ZzJUmjXr2mRB3L94QXAieLvfg2muZFtikXU2r4pkTqdOpGc3g0 CG7eKJgVH210ov2sNkaJpNPOdeTHavHj0t/U1pPOu+y2nFEoychn9RjIElXC9yWS 15kNPN/OQ/UhHLxsDEUpfXLcfBOE7o1hNozhhWIJazYVuUQ/UFZUc3vZbuw5r1iO CHtZgIKuZGNJ39j7LIcl+UmMSFL2Nk8RLzJxWjOwemaJ4MlC30CO7xic+wR4pBzN QSFRK6gGqlHRKmY0TjNeb/jgGh7ZCe7Y+x02ApCYw+sevuj4A== 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 :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712670637; x=1712757037; bh=TzOwnAwh2sSGRvehd+bp/oFk6XsR P24qxpZ2AXjF4wE=; b=r73H0rOpEeUSHatxZM1kzXuU6ekUnUVSyg7+aSwGCMPi aFaosiDfUt40Nu+wKLxfZva2yDWhacO6/vl4gZYO8/HnR/XbmOTgF/Y2XlTXgiU4 5YaI1kmdv+Fpwwu2E6j4q+Hxh0Q1j2IqV3okAq9JxAAUTaDCVvQ2qBS7ToMR0gt9 lXsxyEZ+VQ290kQb5YWfMTJLy4SmwnOQFJGZqY52Hzh8rIxHrzqcww3Otu0sFJa/ hnnDAKLtdv9aJJ08kDG9w5kT6EHlmQpCEca4AwXpxAO66lr2WolSImUjaPFqeyXA kp5qPyJGqArAjLMl0nroZX5HIqqJa5QLupXLoXUz6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehvddgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdflrdcuffgvkhhkvghrfdcuoehjuggvkhesihhtrghnihhmuhhl rdhliheqnecuggftrfgrthhtvghrnhepueetgfdtuedvjeejjedvteelffeuhedtfeetud fglefhjeeukeetvddvtdevieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepjhguvghksehithgrnhhimhhulhdrlhhi X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 9 Apr 2024 09:50:36 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Tue, 9 Apr 2024 15:50:30 +0200 Message-ID: <20240409135034.95513-1-jdek@itanimul.li> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 1/5] 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: iC9xSGFp/0So 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 information or other intermediary formats can fail silently. This patch changes the check to a more commonly used define for GCC style compilers. More checks may be needed to cover other potential compilers that don't use the __BYTE_ORDER__ define. Signed-off-by: J. Dekker --- configure | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure b/configure index f511fbae49..7c22772485 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 <