From patchwork Fri Nov 26 13:12:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Morales Vega X-Patchwork-Id: 31751 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp2204372iob; Fri, 26 Nov 2021 05:13:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcZfg7EJEHc2ifSOHJxyJGpKBOkR4CnRkgFfWwW6AL+3utGt6bxd6yrFXWh+lIEA071Jw1 X-Received: by 2002:a05:6402:35d2:: with SMTP id z18mr46974560edc.188.1637932392367; Fri, 26 Nov 2021 05:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637932392; cv=none; d=google.com; s=arc-20160816; b=iV1SXqIjrQQfkIfE4SvOUwWfqvYPV0VdQ1q3BqiBsBx5Wcl7RcOKUPjohv3YZpb3Se naX137IIRirVPcoHyNPKF9TI0V00iZtM+Xlu1YDaspmufl9feRa3619dilRR9zjWNUaK GoEZ2G9JWqrZKMbcgiLRcrgt4AwqLTQcHgTAkCmkYNZtVGDsq7nG1Dk/l3G6Hq2qyrxn AmBbkn4pN0F3qb8yOuC2D90ceF39jZ8IS3b9zwH857pNfByv9EwZhG6k+nbdoqVhsiAg W2Obwj/FWPKL60mH93ns/BymMRcuCOVN/HxBLPL5/DQXcUpat4whIkh+bazerc2mJbkx oOBA== 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 :dkim-signature:delivered-to; bh=hCR7GrdXbNAqGw3oHsGcE25ldopk2Y/dSXKjpg+Qc6E=; b=F4MbEbnvsW4+L5oH/dqug0a1XobJGhGToJ56XIwEyYr+CcWBn898FsUSzS2CV5WttG rioYuUdsokmEYq2HcpboWsbP5D+kjOKPWJGLAFmfeh/87COx6jVGFKdiJz6HlV9NASzB Wt3m1z0d4faxCgJbO8n4i1hd5hL29NeguNEMRJjKXsx9DPbebBbvqiWz+wQvGlMwDJff lFDPMCzhVwVGT6RY3oRNGuet8WIosbA3wzPL/VB2+VIMrlFB9TyLdrbzx/bsy8xwXanF QR0pFy6exdjJOsZl7nMSLbAh53791BOzhBMVktlxxtGHF6LAdC6rcmizTILth41f992j t4Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samknows-com.20210112.gappssmtp.com header.s=20210112 header.b=V+0sz3NK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samknows.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w6si9483882eji.758.2021.11.26.05.13.11; Fri, 26 Nov 2021 05:13:12 -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; dkim=neutral (body hash did not verify) header.i=@samknows-com.20210112.gappssmtp.com header.s=20210112 header.b=V+0sz3NK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samknows.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0DC4A68AE6F; Fri, 26 Nov 2021 15:13:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1800868AB82 for ; Fri, 26 Nov 2021 15:13:01 +0200 (EET) Received: by mail-wr1-f42.google.com with SMTP id t9so1628336wrx.7 for ; Fri, 26 Nov 2021 05:13:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samknows-com.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6IBGj0M61iUuwq/ajXarq1dWuoaLKIvrmYR2x5a9HtI=; b=V+0sz3NKcGXcB+d/b5SUX5fsM8rC1Yat+dGrZD0p6wnGBfsT2tLln596kHCK2pDnUB prSfVerFLE73WcyKz7vsyLzgH/eQtvkNXHTiwvjr7Ow1pTbLILjaF/90TCE79oECQHt9 2b3RGvTLDBR7FgBkby6eVO/1jPV1TE2G6QW+JmKQvJ3cSVs2YDO2r+H5a6YLr0/0Q3HE O8fliLno/c4xZczaWZVf//U54ciaV1CVYLlEJBzA0WOrHtr67gxczk6cr+oVb3d5Rt+C sNoygGn4AUNwMMnAi+62s+oDv1oNtwmZ70SoUbqAAJDVDsLjya4ElzlP9EK741uIxbrJ 1+aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6IBGj0M61iUuwq/ajXarq1dWuoaLKIvrmYR2x5a9HtI=; b=LDzM8JTH6+juDBQ7t8mnkaWYE16enXmIXe9C+On+n5XIEZAwTOQhTWvKE/R7gT8l7+ YK9Fxmz3i70TQsjj2A0zcW5xCgkUDQzhQ8mCFdd2cSXxUOfiySQR7uc8/Ela1i4iVcq5 bSQZPcpO/zrowyTlDzeIMclVPS6x/pmuVQroVjqPbm+oP3KVE+D6VgeQ3FCmMAi09LgY WZNzWUHvtThIlXBWtHV/W9+zuq9yWQPNkXJh82kH9yhroNYUcIDNjwiwKo1EhJhVUki8 yqzVqVgCv6O9GZy53dMmUbkiSIfFnbBfEE2dI/3yviEixhbv33pLBxa32pxZCDSe9oZF yPMg== X-Gm-Message-State: AOAM531Kuy7L9gTuTvnylouNPLQuO69Pr3DW036QUtJVTZZmiB2EVB36 JG1zRHLQ3PespL8jaC2T5Mn+UJedCncC6gkF X-Received: by 2002:adf:f911:: with SMTP id b17mr14117516wrr.611.1637932380548; Fri, 26 Nov 2021 05:13:00 -0800 (PST) Received: from DESKTOP-CS3GGJG.samknows.com ([2a00:f18:33:8761::1003]) by smtp.gmail.com with ESMTPSA id l22sm5816218wmp.34.2021.11.26.05.12.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 05:13:00 -0800 (PST) From: Cristian Morales Vega To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Nov 2021 13:12:50 +0000 Message-Id: <20211126131250.159618-1-cristian@samknows.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: Include -fPIC also in the LDFLAGS 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: wd1TqivXfP1o The same flags should be used when linking than when compiling. Without this actual errors have been observed when using LTO. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index e6cee21142..97c51f20a7 100755 --- a/configure +++ b/configure @@ -5805,6 +5805,7 @@ enable_weak_pic() { *) add_cflags -fPIC add_asflags -fPIC + add_ldflags -fPIC ;; esac }