Skip to content

OS X Framework support #2023

Closed
Closed
@ashgti

Description

@ashgti

Currently, I do not see any way of linking against a native framework in OS X. For instance, if you wanted to link against OpenGL on OS X, it currently fails to find the native library.

Its possible to just create .o files and link them but it would be nice if there was some way for this to work with the rust compiler.

One possibility could be to add a #[framework_name = "OpenGL"] attribute to the native mod, similar to #[link_name].

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-linkageArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions