-
Notifications
You must be signed in to change notification settings - Fork 170
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
Don't hard-code -ldl -lpthread
for format_args
#2890
Comments
note that this was done exclusively because the build was breaking in our GCC 4.8 CI - other contributors on IRC have mentioned the existence of flags/autoconf functions to check for the existence/necessity of these libraries, so any help would be greatly appreciated |
Cross-referencing https://gcc.gnu.org/PR113499 "crab1 fails to link when configuring with --disable-plugin" here. |
If "query Cargo about crate's linker flags" is not feasible (at this time, at least), then indeed I think I'd add a simple check whether |
some notes from discussing this with jakub:
|
@CohenArthur Unless mistaken this issue should be closed |
thanks, good catch! |
As of #2822 "Start reusing rustc's format_args parser", we add
-ldl -lpthread
toLIBS
ingcc/rust/Make-lang.in
. Instead of doing this unconditionally, we should check if those libraries exist at all, and which are actually necessary -- query Cargo about crate's linker flags?The text was updated successfully, but these errors were encountered: