From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DCDA5867F9 for ; Wed, 9 Sep 2026 20:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788986506; cv=none; b=t8P+YuiqvEJc2axA2p8eIy3tcGNZjWVZQK3fMki5mooNfIAIzJodq9aWaljXPf1Oru+NngyZ3YAoMhJT/5iAtqFilG0/AspBuigI2GCSiDwvh33Y8LSWhXVz/Mc+afPP+ojsCIdhpr5XeKUc/g8tbfdnrj7pcfWhEVMGayo1fFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788986506; c=relaxed/simple; bh=lzGikIwP3jt+gebSI9ASbBMxYIDTjcvzLhu0dadRD3g=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=B9YDDKjVGPmuIqiBKsARc6iNtCZIOGfCaE0496/zY0XiH2fP8ZpSWo6cF2syGybiC9saMLvajJVe4k0H0KCQXJFf2g9iMLNS6MOmHLfK8UN0ZGBt992Mthowl/sMSWhejKGU4R8vXW+xJmOC7Nc2c8qGzC7vPNUiDCJ63gufjXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=VDFHeMev; arc=none smtp.client-ip=209.85.214.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VDFHeMev" Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2db0a41434bso115232505ad.0 for ; Wed, 09 Sep 2026 13:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1788986492; x=1789591292; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=eQnCep2rVFC6ERkLpw82m7uGzTr5iSCdTDgfzxN2350=; b=VDFHeMev5pnXQuqWlK5DscSbU6oztU5Foif6XfZIkbz/x5Wn/+OKKITJdtIzbf+mVz 2yWVMR17CirnHLdUAAtq48kIkX+T2TnwDiqWzSHMVcwhqY5aKSY/EoLcCmBPgtgfzp8u 5OHM9Wyb2te5MxAb8KmTVSU1LFRFej36kqENFMYPxgpibEo/LQqlOozSrUwFU9LA3s2w M5XXfZ2fP65weowTLfN7y8Pdq59y08dlQFeZ493GThXTiM8eZUAZZy9w4Q4VA89TMqhq b2CKvuIwp73xXsJsYLk7SqoWNl/k2DSVu2CswSm4nAPE5L2Xs5GC+qwjEAFfcJQcnLNH ud2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788986492; x=1789591292; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=eQnCep2rVFC6ERkLpw82m7uGzTr5iSCdTDgfzxN2350=; b=VvHWM8boELSSHCnLODxxW7BtIbLtropoiOqoJsKph8Bxa27BrlD7F5/kgDPXHWWxjO 3KUD7hVCHbYN+WSJruTMc4rA8SyE/coJVy//YbrYEPp8QwJqhO6Q03vaFahrtrQGLFFW GJ+04PlkHVq0usQKKeA1tyDUuL6s9gLKBrGFSYu8z4gM9/xwa1YaY5MevM6Td5yZjo7J W6PiaRjuaW+2jI+PN16/sCowycu8JCRMu5n9DiuC7qs3lZzT21eB8nB75JZxPGfYJW1i 21OAppgx28eU9CRFXcYDIpd4QEovuLJ/v/t7SrRNsCw54+6jIRZflBGHvy0UJUEcFVsB JqQg== X-Gm-Message-State: AFuF++lhPdk/LRMmRG66B2ynyH3m75jWGx3uRMMyXlOqD+Bbw3oXfWJb IbKMlMBMI9ddRppdTNTFASzCSe2CELOiUFyFBy7xrkS0exhd1CDwItywpQ7LikAj0xNHoMEb7nb P0ZaGjS4tSg== X-Received: from dlzz35.prod.google.com ([2002:a05:7022:4a3:b0:143:56d8:251]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:380a:b0:398:d2a0:87ff with SMTP id 98e67ed59e1d1-39d7098094bmr3884030a91.1.1788986491408; Wed, 09 Sep 2026 13:41:31 -0700 (PDT) Date: Wed, 9 Sep 2026 13:41:18 -0700 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.1003.g10538fe699-goog Message-ID: <20260909204122.1993010-1-irogers@google.com> Subject: [PATCH v2 0/4] tools build: Fixes for libbfd -lzstd dependency From: Ian Rogers To: Quentin Monnet , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , Josh Poimboeuf , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , Adrian Hunter , James Clark , Nick Terrell , David Sterba , Tomas Glozar , Costa Shulyupin , Michael Jeanson , Dmitrii Dolgov <9erthalion6@gmail.com>, Leo Yan , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This is a fuller set of patches from v1 addressing build problems linking with libbfd when zstd is a dependency. The original issue was exposed on Fedora with perf's build-test. This series separates the build from the perf changes and adds in bpftool and objtool fixes caught by Sashiko. The changes follow the pattern used by the zlib -lz dependency and so appear correct but are untested. v1: https://lore.kernel.org/linux-perf-users/20260909181030.1870496-1-irogers@google.com/ Ian Rogers (4): tools build: Add explicitly sequenced -lzstd to libbfd feature fallback perf build: Add explicitly sequenced -lzstd to libbfd feature fallback bpftool: Add explicitly sequenced -lzstd to libbfd feature fallback objtool: Add explicitly sequenced -lzstd to libopcodes fallback tools/bpf/bpftool/Makefile | 4 ++++ tools/build/Makefile.feature | 3 ++- tools/build/feature/Makefile | 12 +++++++++--- tools/objtool/Makefile | 3 ++- tools/perf/Makefile.config | 3 +++ 5 files changed, 20 insertions(+), 5 deletions(-) -- 2.55.0.1003.g10538fe699-goog