Skip to content

Having trouble making a formula work on both macOS and Linux #1085

Answered by SMillerDev
mainrs asked this question in Linux
Discussion options

You must be logged in to vote

It seems that Linux binaries are meant to be statically linked.

They are not, homebrew prefers shared binaries whenever possible.

I couldn't find any instructions on how to run different install commands depending on what the OS is.

Look in homebrew-core for usage of on_linux and on_macos

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mainrs
Comment options

@gromgit
Comment options

@carlocab
Comment options

@mainrs
Comment options

Answer selected by mainrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
4 participants