Skip to content

fix: malformed Darwin linker flags for libvdehist - #79

Merged
rd235 merged 1 commit into
masterfrom
vde-macos-build-ci
Oct 3, 2026
Merged

rd235 merged 1 commit into
masterfrom
vde-macos-build-ci

Conversation

@danielinux

Copy link
Copy Markdown
Member

Fixes #71

Apply the reduced Darwin flags proposed by the reporter.

Note: the macOS job is already present in the ci.yml matrix, so no CI change
was needed (deviation from the original plan).

Verified: host build passes.

-Wl,-force_load without an archive path consumed the next linker
argument, so MacPorts builds failed with "library
'-headerpad_max_install_names' not found". Only
-undefined,dynamic_lookup is actually required (libvdehist has an
unresolved _prompt symbol on macOS); drop the rest so the build
environment provides its own optimization, debug, PIC and
install-name flags. The existing macos-latest CI job exercises this.

Fixes #71.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 11:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused change matches the issue’s verified fix without introducing unresolved concerns.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes malformed macOS linker flags for libvdehist while preserving unresolved-symbol handling.

Changes:

  • Removes unnecessary Darwin compile/link flags.
  • Uses the valid -Wl,-undefined,dynamic_lookup option.
File Description
src/​lib/​CMakeLists.txt Corrects Darwin linker configuration for vdehist.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rd235 rd235 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CI tools should have confirmed the cmake options for Darwin. ok.

@rd235
rd235 merged commit 5480240 into master Oct 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS CMake build: malformed vdehist linker flags

3 participants