Hi,

I noticed that building GDB and other tools in binutils did not take the path 
given to --with-zstd into account.
In my case, I have a system wide zstd dynamic library, but my build should use 
a static library instead.  I thus, build zstd as a static library and point 
configure to this location.

The 
[feedback](https://sourceware.org/pipermail/binutils/2026-September/151700.html)
 on my [binutils 
patch](https://sourceware.org/pipermail/binutils/2026-September/151690.html) 
was that I should do the change in the GCC tree and then sync that back to 
binutils.

Ok for trunk?

Kind regards,
Torbjörn

--


---
This is a forge pull request published on the gcc-patches mailing list mailing 
list
as requested by Torbjörn Svensson via Sourceware Forge 
<[email protected]>.
Forge discussion: https://forge.sourceware.org/gcc/gcc/pulls/236

Get it locally using:
```
git fetch forge-upstream "+refs/versioned_pull/236/*:refs/versioned_pull/236/*"
git switch -c "pr-236-v1" "refs/versioned_pull/236/1/head"
```
Or, download the patch at: https://forge.sourceware.org/gcc/gcc/pulls/236.diff
Created on: 2026-09-29 18:10:40+00:00
Latest update: 2026-09-29 18:31:22+00:00
Changes: 7 changed files, 998 additions, 210 deletions
Head revision: azoff/gcc ref pr/config/zstd.m4 commit 
bcf484cc561df4bc7f064921c48ff2b8453a992b
Base revision: gcc/gcc ref trunk commit 
36aa829e54652ed78ed4697f9ff0ebe7ed4608ba r17-4665-g36aa829e54652e
Merge base: 36aa829e54652ed78ed4697f9ff0ebe7ed4608ba
Requested Reviewers:

Changed files:
- M: config/zstd.m4
- M: gcc/aclocal.m4
- M: gcc/configure
- M: gcc/configure.ac
- M: libbacktrace/aclocal.m4
- M: libbacktrace/configure
- M: libbacktrace/configure.ac

Torbjörn SVENSSON (3):
  config: Expand the shared zstd configure macro
  gcc: Use shared zstd detection
  libbacktrace: Use shared zstd detection

 config/zstd.m4            | 130 +++++++++-
 gcc/aclocal.m4            |   2 +
 gcc/configure             | 516 ++++++++++++++++++++++++++++++--------
 gcc/configure.ac          |  80 +-----
 libbacktrace/aclocal.m4   |   2 +
 libbacktrace/configure    | 473 ++++++++++++++++++++++++++++++++--
 libbacktrace/configure.ac |   5 +-
 7 files changed, 998 insertions(+), 210 deletions(-)

-- 
2.54.0

Reply via email to