From patchwork Wed Mar 15 16:43:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6699 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PcGRz6K6Qz3wfH for ; Wed, 15 Mar 2023 16:43:43 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PcGRx6K14zQS; Wed, 15 Mar 2023 16:43:41 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PcGRx4ZRHz2yq3; Wed, 15 Mar 2023 16:43:41 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PcGRw3Vwtz2ynQ for ; Wed, 15 Mar 2023 16:43:40 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PcGRv4ZyRz20; Wed, 15 Mar 2023 16:43:39 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1678898619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sZU7mdanDF496X/FwBUpFfS6td0DIpFfkUuNAXc8Gxo=; b=6eK1C81qZ880zrMo9GkqFzFxN1zcKfSeRkHMB44/r19onSTZd/NctLTN5QcjX4Cg7oj/qe qbvyoTlzDT11qjDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1678898619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sZU7mdanDF496X/FwBUpFfS6td0DIpFfkUuNAXc8Gxo=; b=Qtb0cjdooXm4YvC46q0Bhe4a5WjuGBOY1i0GVj46ATVIxymqXT5heeY2ihovSBkpOwDQld BTL6IB+jeeyzzx5gB6b1QJodoRQCNEjKmu2fQ1/yhcG3+fWKY/7ivmfaT9Hrj0t4iyYo6t 6boFX/zRCGs46FYZCzA3n6l8bpIkhL99QJZoutuu/0PT+Ea+4v0HlIHDYx8OGo3+QIcEvD AF9h/ek2yhjiHXpUEOFKv44byTSly5CREjEyx34w9zj2u3G1RNDMM1bBTuXD2iuxetDUGy HU3CiriJnt3i7Q7vTyl+PZiIYzTJa7cAfdOm/HYQ2JS126flw5saXdIYYVh7yA== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] kernel: Use our LDFLAGS for gcc plugins Date: Wed, 15 Mar 2023 17:43:32 +0100 Message-Id: <20230315164332.710357-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- kernel/kernel.nm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/kernel.nm b/kernel/kernel.nm index 62c23132b..9b340f8b3 100644 --- a/kernel/kernel.nm +++ b/kernel/kernel.nm @@ -5,7 +5,7 @@ name = kernel version = 6.2 -release = 1.2 +release = 2 thisapp = linux-%{version} maintainer = Arne Fitzenreiter @@ -75,7 +75,9 @@ build sed -e "/^COLORIZE_PLUGIN_CFLAGS/d" \ -i Makefile - sed -e "s/\$(HOST_LFS_CFLAGS)/& -fPIC/g" -i Makefile + # Use our linker flags while building the compiler plugins. + sed -i '/^plugin_ldflags\s\+=/ s/$/ %{LDFLAGS}/' \ + scripts/gcc-plugins/Makefile # Get rid of unwanted files resulting from patch fuzz. find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null