Skip to content

Fix libunwind cmake to include lzma in static builds#2586

Closed
afrind wants to merge 1 commit into
facebook:mainfrom
afrind:export-D93644458
Closed

Fix libunwind cmake to include lzma in static builds#2586
afrind wants to merge 1 commit into
facebook:mainfrom
afrind:export-D93644458

Conversation

@afrind

@afrind afrind commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Summary: The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

Summary: The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458
@meta-cla meta-cla Bot added the CLA Signed label Feb 20, 2026
@meta-codesync

meta-codesync Bot commented Feb 20, 2026

Copy link
Copy Markdown

@afrind has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93644458.

@bigfootjon bigfootjon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

afrind added a commit to afrind/folly that referenced this pull request Feb 20, 2026
Summary:

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458
@meta-codesync meta-codesync Bot closed this in 0c8d5a0 Feb 20, 2026
@meta-codesync

meta-codesync Bot commented Feb 20, 2026

Copy link
Copy Markdown

This pull request has been merged in 0c8d5a0.

meta-codesync Bot pushed a commit to facebook/fb303 that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/watchman that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/openr that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/CacheLib that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/fboss that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/wangle that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/fbthrift that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/mvfst that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/proxygen that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookincubator/fizz that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookincubator/katran that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookincubator/cinderx that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
meta-codesync Bot pushed a commit to facebook/sapling that referenced this pull request Feb 20, 2026
Summary:
X-link: facebook/folly#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
bolunfeng pushed a commit to bolunfeng/folly that referenced this pull request May 22, 2026
Summary:
Pull Request resolved: facebook#2586

The existing FindLibUnwind.cmake uses a bare find_library which misses transitive dependencies (e.g. lzma, zlib) that static libunwind needs. Switch to preferring pkg-config which picks up the full set of static dependencies from Libs.private, with a fallback to the original find_library approach for systems without pkg-config.

Reviewed By: bigfootjon

Differential Revision: D93644458

fbshipit-source-id: b470df008b95497a8db3149c3ddc7b0827c1dee5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment