Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Homebrew Formula for static-friendly musl-based GCC OS X-to-Linux cross-compilers

License

NotificationsYou must be signed in to change notification settings

lemonrock/homebrew-musl-cross

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

One-click static-friendly musl-based GCC macOS-to-Linux cross-compilersbased onrichfelker/musl-cross-make.

brew install FiloSottile/musl-cross/musl-cross

By default it will build a full cross compiler toolchain targeting musl Linux amd64.

You can then usex86_64-linux-musl- versions of the tools to build for the target.For examplex86_64-linux-musl-cc will compile C code to run on musl Linux amd64.

The "musl" part of the target is important: the binaries will ONLY run on a musl-based system, like Alpine.However, if you build them as static binaries by passing-static as an LDFLAG they will runanywhere.Musl is specifically engineered to support static binaries.

Other architectures are supported. For example you can build a Raspberry Pi cross-compiler:

brew install FiloSottile/musl-cross/musl-cross --without-x86_64 --with-arm-hf

You can also use--with-i486 (x86 32-bit),--with-aarch64 (ARM 64-bit),--with-arm (ARM soft-float) and--with-mips.

(Note: a custom build can take up to several hours, depending on the selected architectures and on the host CPU.)

Only tested on macOS Catalina.

About

Homebrew Formula for static-friendly musl-based GCC OS X-to-Linux cross-compilers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby100.0%

[8]ページ先頭

©2009-2025 Movatter.jp