Skip to content

Linking against Homebrew-provided libs in Linux #2945

Answered by carlocab
native-api asked this question in Linux
Discussion options

You must be logged in to vote

Homebrew GCC is configured to add the correct RPATHs. We may add this to .pc files we ship too so that it works with pkg-config and a non-Homebrew GCC too.

If you want to avoid the need for a Homebrew GCC, adding

LDFLAGS="-Wl,-rpath,$(brew --prefix)/lib"

should help.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by native-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
2 participants