Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: fix runtime-lib detection on macOS #8028

Closed
wants to merge 1 commit into from

Conversation

bwncp
Copy link
Contributor

@bwncp bwncp commented Nov 17, 2021

With a non-standard installation of openssl we get this error:

checking run-time libs availability... failed
configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

There's already code to set LD_LIBRARY_PATH on Linux, so set DYLD_LIBRARY_PATH equivalent on macOS.

With a non-standard installation of openssl we get this error:

    checking run-time libs availability... failed
    configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

There's already code to set LD_LIBRARY_PATH on Linux, so set DYLD_LIBRARY_PATH
equivalent on macOS.
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach! 👍

@bagder bagder added the build label Nov 17, 2021
@bagder
Copy link
Member

bagder commented Nov 18, 2021

Thanks!

@bagder bagder closed this in ba0657c Nov 18, 2021
@bwncp bwncp deleted the curl-macos-runtime-libs branch January 27, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants