From patchwork Mon Jan 30 12:22:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 40178 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3ca3:b0:b9:1511:ac2c with SMTP id b35csp3356713pzj; Mon, 30 Jan 2023 04:22:25 -0800 (PST) X-Google-Smtp-Source: AK7set+SPqAsnY81ndh9Zr9oXkNe1V5aIN5+CxmcbfczOyfanUeUvlxQV9tpWOAB0jl/VTfkavhk X-Received: by 2002:a05:6402:3c3:b0:4a2:41f5:62f1 with SMTP id t3-20020a05640203c300b004a241f562f1mr5296081edw.32.1675081345383; Mon, 30 Jan 2023 04:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675081345; cv=none; d=google.com; s=arc-20160816; b=MITmcoU96T91vpclIdQpKVMj1yOe/X+OowtZl/25MB0uWEz3yaipDoVB3kESe5UARl 8fPCQSy95Lvm/aO4hqU2quR6vCnf0G9J+qU7GixlUYoY5lJgAtKDannBU18Vd6s7S4ZA zpDcWaXKZLuItyxBz6Zl3vX7m13fCI0Uq+jZJVQhx8TbTODBPR9faVfV4VScNBnDIFuA 8Sa5DvFR/RJkpFC7W2xz3aH2L2tkk2MNS1/R3zDl9BW7RdsfeuiViulpCPj9dfMpCDdF NVmHVxo3zrxMoXTWQCQtZnoY/evU/EnDOLkvtLdHzq5NBCv3AcAfV063sCs92ppYnbOq LR4Q== 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 :delivered-to; bh=CnQled9Xm5TTuliGIHY2aBN79G4Bwge1a3Pn4YRL8OU=; b=wxNp1HW5fVQTjBZckU7+YRGZIB3XYwYaOwEWcW0daZfWKsr6i5BTPlxXAGnKzzyaC6 YZuwvbqcq1RwaijDAk9R5IhlhWwmClJ3COzKikkWA5Ui/D60DPVy9glce/PZ2pViiNBe Q6Xyo7O7FPg6jNQCdePrj1Ek6CFQI8m4hcv0fl+5HPtENAwmiZSvLkVso04x++9Gpqfn +EDpsOMRQhDlbo6mq4DM4QjWwHAqEwxjTf/O/9bdWSKXHnVq2bREwkK3pcDTqHYpMQNv t5sx8MFconpU9DE8xz4bYVfOjF58WqC/SNPtW2qiByzEDmRdD2DJvoGIS8ZoP8jakoYQ pWgg== ARC-Authentication-Results: i=1; mx.google.com; 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 l30-20020a50d6de000000b004a0a8a35237si6752511edj.217.2023.01.30.04.22.24; Mon, 30 Jan 2023 04:22:25 -0800 (PST) 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; 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 5003368BC9B; Mon, 30 Jan 2023 14:22:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7584768B26F for ; Mon, 30 Jan 2023 14:22:15 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 38CB52404EC for ; Mon, 30 Jan 2023 13:22:15 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id UweT56rEehwm for ; Mon, 30 Jan 2023 13:22:14 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id A70BE240178 for ; Mon, 30 Jan 2023 13:22:14 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 615573A0101 for ; Mon, 30 Jan 2023 13:22:14 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 30 Jan 2023 13:22:13 +0100 Message-Id: <20230130122213.28822-1-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: add -fno-semantic-interposition to optflags 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: AJIfbcdwo61D Gcc flag -fsemantic-interposition, which is on by default with current gcc versions, makes the compiler assume exported symbols can be interposed by the linker, which prevents various kinds of optimization. Since we do not support such interposition and disable it with -Bsymbolic, explicitly disable this assumption. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index cb895cf9ac..6f702bfb64 100755 --- a/configure +++ b/configure @@ -7174,6 +7174,7 @@ check_optflags(){ check_optflags $optflags check_optflags -fno-math-errno check_optflags -fno-signed-zeros +check_optflags -fno-semantic-interposition if enabled lto; then test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"