Skip to content

Locating dylib files #1592

May 31, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

If it's not keg-only (i.e. most formulae), then you can usually find them in ${HOMEBREW_PREFIX}/lib. If it is keg-only (e.g. OpenSSL), then you can (usually) find them at ${HOMEBREW_PREFIX}/opt/${formula_name}/lib (e.g. /opt/homebrew/opt/[email protected]/lib).

You really want to avoid paths that contain Cellar -- these will change with version/revision bumps. This will break your dylib links even when the updated libraries are API/ABI-compatible. This is also why the install names of these libraries will not contain a reference to the Cellar.

That said, it's a little strange to need MachO::Tools.change_install_name. That's usually a sign that something's broken in the build system.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tillkruss
Comment options

@tillkruss
Comment options

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