-
-
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
"./configure --enable-threaded-resolver --disable-rt" doesn't work #3294
Comments
I can reproduce this as well but I don't consider it very important. Why do you want to degrade the internal time-keeping? (Basically looking for an argument to not remove |
In my case, I am linking curl into another library which previously did not depend on librt, so I'm trying to prevent breaking backward compatibility by introducing new dependencies. |
I believe curl's configure script has detected and used I can't recall why it doesn't allow the combination pthreads and no librt. I presume removing that check and testing would be a good first step! |
ISTR update: on Debian 9 librt is linked with |
So by using pthreads (ie the threaded resolver on a non-windows box) you will get the rt lib in the package as well no matter what you tell curl's configure script. @claudiusaiz, that means if you really insist on building without using -lrt, you're probably more or less forced to also disable the threaded resolver. If you're trying to keep the exact behavior of an old build, that probably makes sense too since curl used to build with the sync resolver by default up until d86e918 (August 2017). |
Thanks, but since I want to maintain backward compatibility and still have the performance advantages of |
I did this
Trying to configure the library in the following way doesn't work:
I expected the following
Without the
--disable-rt
flag, the configure works:./configure --enable-threaded-resolver
I don't see why the threaded resolver should care about librt, so I guess it should work.
curl/libcurl version
libcurl version: 7.62.0
operating system
The text was updated successfully, but these errors were encountered: