Skip to content

[qt5] libtool chokes at -framework in dependency_libs in libQt5Core.la #26467

@wrobelda

Description

@wrobelda

Describe the bug
While working on #26424, I am getting the following error when building on macOS:

libtool: warning: library '/Users/cromo/Documents/Sourcecode/vcpkg/installed/arm64-osx/debug/lib/libQt5Core_debug.la' was moved.
libtool:   error: cannot find the library '' or unhandled argument 'DiskArbitration'

Apparently lib tool does not understand the -framework syntax in dependency_libs, and so they need to be moved to inherited_linker_flags.

See NixOS/nixpkgs#96977 for the reference and NixOS/nixpkgs@8e4e38c for a solution

Environment

  • OS: macOS

To Reproduce
Steps to reproduce the behavior:

  1. Checkout the PR linked above on macOS
  2. ./vcpkg install gpgme[qt]
  3. See error

Metadata

Metadata

Assignees

Labels

Stalecategory:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions