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 EACE6480BD for ; Tue, 9 Apr 2024 13:50:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B303668CD53; Tue, 9 Apr 2024 16:50:47 +0300 (EEST) 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 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 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 <