Skip to content

When building on OSX, "-L" needs to set the search path for frameworks as well as libraries. #20259

Closed
@caryhaynie

Description

@caryhaynie

Currently, it appears that

  1. rustc disables the standard framework search path by default,
  2. the only way to specify an alternative framework search path is via '-C link_args="-F "' to rustc, or by using the oft derided link_args crate attribute.

This makes linking against frameworks via cargo incredibly difficult, since cargo only allows setting the "-l" and "-L" compiler flags. It would be great if rustc modified both the dylib search path and the framework search path when a "-L" option is passed to rustc on OSX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesO-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions