Skip to content

configure: fix runtime-lib detection on macOS#8028

Closed
bwncp wants to merge 1 commit intocurl:masterfrom
bwncp:curl-macos-runtime-libs
Closed

configure: fix runtime-lib detection on macOS#8028
bwncp wants to merge 1 commit intocurl:masterfrom
bwncp:curl-macos-runtime-libs

Conversation

@bwncp
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants