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 664C2474CF for ; Fri, 8 Sep 2023 19:00:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AF94F68C861; Fri, 8 Sep 2023 22:00:30 +0300 (EEST) Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7410D68C2FB for ; Fri, 8 Sep 2023 22:00:24 +0300 (EEST) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1c4cd0f6cb2so1242179fac.0 for ; Fri, 08 Sep 2023 12:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694199622; x=1694804422; darn=ffmpeg.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Ta5mCA+nhSBEfvXMHB6CDPjlykqDq1V8cIkwq7uNGMA=; b=R0KuWfgsFzisQ/E7PKA05k1J54UY/7IESCLgmMo5Q0OTBMjvdrrk7RM8uBevN4fmeD /sxY0td39N1HMumFRgKV8te0xsr3iRhFsTjb4y1RyseQ7GtdG4EovcQLxjEk/wa5ci1Q tzhVy1XZSmXrVG8ZCyPdb1NiWEYPxuqeQhULDLC5pi3q6/G3SCCj603PjAjmbSRuWBE3 zlzMSWnOryMdG0BKAoA9m5LHrwDXLt3hC1o70bPYDLFQuip4qvYlHISCvVHFShkQvr8V kR4KacQrJpjc98arjENQYaX9ZkkpS1ta4dj/V/Ct3jbPU2PURROqPi6WaZZBPKXrMrTd RLwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694199622; x=1694804422; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ta5mCA+nhSBEfvXMHB6CDPjlykqDq1V8cIkwq7uNGMA=; b=KskX8349xJsUM/wQzbFopkF/OtyXfZGr/dJ1TrXfNEzLYTCbAYJnsxTOg56LkNG2l3 3ExyUfkWGD6ZNPswzmBBrCYRy/p+rVYARzPdzKDvqaxt0r9WvwaZyk6RqwMzVSm6wp2y qNKGAcEXUoPD0yBEqJPP2hJKDPKOVlBymR5PyjK4n4c7O4U7MNKpyxXQ8LiFaF+YAeO2 6rCCv9yQiMgFf1T3Vq2FGHXSqgbmsU7zSEq2SmiDzkO05XTdx62qRFmkN+GDQda1N3Rm LeUC+aL29vNLZxNoUYqcgES/ga5dOGilJXqA/GgS64BPRTbwZwwoWCFvz2UzCfLJTKC7 neVA== X-Gm-Message-State: AOJu0YwINliyhnM5/AyYvQNh7pZCD+NoVPJRhhMJXzr3oUZpVELaIOyA 2Z7IrTTUg7/GuBR9LANKwS5qSOOMbT7v4FghQA8ypchuZPQ= X-Google-Smtp-Source: AGHT+IHmICbVkkLgLbrq41FAMBq7jv62Izuv3UKgBPt6j/juWMeWV15E8W8ZKP9pAlL7eCPJGaAuo9Kp1FYgXpCY3Nc= X-Received: by 2002:a05:6870:8193:b0:1ba:c1e7:6b00 with SMTP id k19-20020a056870819300b001bac1e76b00mr1627459oae.3.1694199622692; Fri, 08 Sep 2023 12:00:22 -0700 (PDT) MIME-Version: 1.0 References: <20230905232630.2031-1-kasper93@gmail.com> <32b7a66e-1b20-6912-6a2b-993821cd470c@rothenpieler.org> In-Reply-To: From: Kacper Michajlow Date: Fri, 8 Sep 2023 20:59:57 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] configure: don't force specific C++ standard library linking 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: On Fri, 8 Sept 2023 at 20:46, Kieran Kunhya wrote: > > On Fri, 8 Sept 2023 at 19:42, Kacper Michajlow wrote: > > > On Fri, 8 Sept 2023 at 00:11, Kieran Kunhya wrote: > > > > > > On Thu, 7 Sept 2023 at 22:39, Kacper Michajlow > > wrote: > > > > > > > On Thu, 7 Sept 2023 at 15:12, Derek Buitenhuis > > > > wrote: > > > > > > > > > > On 9/6/2023 6:31 PM, Kacper Michajlow wrote: > > > > > > What would be a downside of preferring CXX always if it exists? > > > > > > > > > > FFmpeg runs in a multitude of environments with a multitude of > > > > portability > > > > > requirements. Needlessly linking a C++ runtime is not OK. > > > > > > > > This does not answer my question. Let me rephrase. Do we know the case > > > > where using C++ compiler driver rather than C would degrade the > > > > quality of the resulting build? > > > > > > > > > > The machine that ffmpeg is being compiled on is not necessarily the one > > > that ffmpeg is going to be run on. > > > > Not sure how this is relevant to the discussion? > > > > > > > > What would be a downside of preferring CXX always if it exists? > > Because it forces a dependency on libstdc++ even if another machine does > not have it. On all "affected" platforms, configure already adds -Wl,--as-needed, so the resulting library has exactly the same dependencies. Unless something references symbols from stdlib, but then it would just not link with clang anyway. ~ clang++ m.o -Wl,--as-needed && ldd a.out linux-vdso.so.1 (0x00007ffeeb912000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f64050a7000) /lib64/ld-linux-x86-64.so.2 (0x00007f64052ad000) ~ clang m.o -Wl,--as-needed && ldd a.out linux-vdso.so.1 (0x00007ffe1fb36000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e7a3c2000) /lib64/ld-linux-x86-64.so.2 (0x00007f5e7a5c8000) - Kacper _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".