Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

link openssl library on Mac OS X when using Homebrew #9

Open
aluscher opened this issue Dec 20, 2019 · 0 comments
Open

link openssl library on Mac OS X when using Homebrew #9

aluscher opened this issue Dec 20, 2019 · 0 comments

Comments

@aluscher
Copy link

With the latest Homebrew formula of openssl@1.1, it seems necessary to link the ssl library explicitly. After modifying setup.py as below, things work fine again.

...
if sys.platform == "darwin":
    extra_compile_args += ["-stdlib=libc++", "-mmacosx-version-min=10.14", "-I/usr/local/opt/openssl@1.1/include"]
    extra_link_args += ["-stdlib=libc++", "-mmacosx-version-min=10.14", "-L/usr/local/opt/openssl@1.1/lib"]

    # Relevant only when c-cares is not embedded in grpc, e.g. when
    # installing grpc via homebrew.
    libraries.append("cares")
    libraries.append("ssl")
...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant