-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Do not export LD_LIBRARY_PATH globally #2490
Comments
If you look closer, you'll see that the configure scripts builds and executes a few of the tests. Those tests will fail if it can't link with the libs it has already detected it should use. Your bad ccache install is perhaps the first thing to fix here... If you can make configure only use |
Adding |
I presume we can make a wrapper macro for |
... only set it when we actually have to run tests to reduce its impact on for example build commands etc. Fixes #2490 Reported-by: Dmitry Mikhirev
Does my suggested change make it better for you? |
@bagder thank you, it does exactly what I need. Test build in my environment passed successfully. |
Lovely, thanks for the confirmation. I'll merge that... |
Hello!
In
configure.ac
paths to SSL libraries are added toLD_LIBRARY_PATH
, that is exported immediately after that. In some cases this leads to breaking the toolchain, improper configuration and impossibility to compile.In my particular case, I have custom openssl installation in non-standard prefix, and some other libraries, including zlib, there. After openssl is found and its path is added to
LD_LIBRARY_PATH
, some subsequent tests fail becauseccache
segfaults (it uses zlib to compress/decompress cached object files)../configure
finishes successfully, but compilation fails because of incorrect configuration.As custom
LD_LIBRARY_PATH
is needed to execute tests only, it is better to set it when running tests, but not during configuration and build.curl/libcurl version
Applicable to any version, including
master
.operating system
Solaris 10 with gcc and ccache from opencsw, but also possible to reproduce on any Unix-like system.
The text was updated successfully, but these errors were encountered: