Skip to content

Should rustc.exe be statically linked to libgcc etc.? #1603

Closed
@ssylvan

Description

@ssylvan

Right now a user would have to have MinGW installed, and its bin directory on their path, in order to run rustc. Perhaps those dependencies should either be taken care of by the installer, or be statically linked into the executable?

Activity

brson

brson commented on Jan 23, 2012

@brson
Contributor

We need to do something here for sure. I'm not sure where the libgcc dependency is, and if we need it for every rust crate or just rustc. Possibly worse than that is that rustc has a run-time dependency on gcc.exe.

graydon

graydon commented on Feb 15, 2012

@graydon
Contributor

I do not think this is fixable in the timeframe in question. We're still very much wedded to mingw on windows.

ghost assigned on Apr 12, 2012
graydon

graydon commented on Aug 31, 2012

@graydon
Contributor

Possibly we should ship libgcc and when rustc runs, it can discover the missing gcc/ld it will need to link stuff and fail gracefully with an error message rather than just reporting a missing DLL at startup.

pnkfelix

pnkfelix commented on Mar 22, 2013

@pnkfelix
Member

Not critical for 0.6; de-milestoning

catamorphism

catamorphism commented on May 23, 2013

@catamorphism
Contributor

Nominating for milestone 5, production-ready

graydon

graydon commented on May 30, 2013

@graydon
Contributor

sub-bug / dupe of #3459, mingw has to be generally removed from dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@brson@pnkfelix@catamorphism@ssylvan

        Issue actions

          Should rustc.exe be statically linked to libgcc etc.? · Issue #1603 · rust-lang/rust