-
Notifications
You must be signed in to change notification settings - Fork 1k
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
build: Link bench
binary statically
#1119
Conversation
This change prevents linker errors when cross compiling with `--host=x86_64-w64-mingw32`.
For what it's worth, these messages are entirely harmless. For shared libraries, libtool has some magic which creates wrapper executables (scripts or binaries) that let you run your programs without installing the shared library or fiddling around with environment settings such as Now the crux is that even creating the wrappers needs a filename conversion between Unix and Windows, and this requires the The problem with So I believe we should do the opposite: Drop @elichai Is there a specific reason why you set |
Yes, they are. In terms of the resulted artifacts. From the user's point of view, the "error" word in the log means something wrong. It should be avoided or documented clearly.
Maybe make behavior dependent on the fact whether Wine has been installed? |
Yeah, I'd be somewhat reluctant to maintain a workaround for this if it's not actually only a problem in the error message. I agree an "error" sounds scary but even the message then says "Continuing, but uninstalled executables may not work.". What do you think of reporting that to libtool and suggesting they change it to a warning? The manual even says it's a warning:
libtool was dead for a long time but now they have a new maintainer and they recently tagged a release after 7 years. |
From what I remember it was that I saw that everything was using |
IIUC, we do not use such a configuration in CI. Why we should bother about it at all? |
While testing #1022 I've noticed a linker error when cross compiling with
--host=x86_64-w64-mingw32
in particular circumstances.I cannot recall my building environment then, but currently, on Ubuntu 22.04 with gcc 11.2, this error raises unconditionally:
This PR prevents linker errors when cross compiling with
--host=x86_64-w64-mingw32
.Please note that the same linker flag is used for all of the tests and examples. Moreover, it was used in the initial Autotools commit:
secp256k1/Makefile.am
Line 45 in 78cd96b