-
Notifications
You must be signed in to change notification settings - Fork 252
-undefined dynamic_lookup
confuses configure
#440
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
Comments
I would suggest that this is a bug in autoconf since it should be aware that for clang on osx that this flag modifies the behaviour of the thing it is trying to test. |
I just spent most of the day tracking this down. It manifests as the configure script incorrectly detecting the presence of features that the platform does not have, resulting in missing headers or symbols during the build. Considering that the version of autoconf that a lot of software expects is from 2012, the practical solution here is probably to filter this flag out somehow. Do you have a suggestion for how to accomplish that, short of falling all the way back to a genrule? One thing that confuses me in particular about rules_foreign_cc is that configure scripts often take on the responsibility of setting up valid CFLAGS and LDFLAGS for the build, and while some of the toolchain flags are required (like where to find headers and system libraries) others seem like preferences, or, like |
@djmarcin is it possible to remove this flag? I found the place in bazel sources where it is set. But I have no idea how to remove it. |
I didn't find a way to unset it, I fell back to using a set of genrules that allow me to exercise more precise control over these sorts of flags. |
Workaround for 0.7.1 provided in #859 (comment). |
Synopsis
Bazel insists on defining
-undefined dynamic_lookup
on darwin_x86_64 which makes the TRY_LINK rule always succeed.I'm not sure what the best course of action is. Should this be considered a bug in autoconf? Or a bug in bazel? But it seems pretty specific to using
configure_make
.How to reproduce
libcurl 7.73.0 exhibits this problem when building on macosx using GCC (not the native Clang).
The text was updated successfully, but these errors were encountered: