configure sometimes misses passing LDFLAGS when testing linker
Jameson Nash
vtjnash at gmail.com
Mon Mar 25 22:51:22 UTC 2019
There are a couple tests in ./configure which try to link binaries, but
which don't propagate the LDFLAGS. In some cases, the compiler doesn't work
at all without those (notably, seen on FreeBSD when trying to use new-ish
gcc versions). This patch updates configure.ac to pass along the linker
flags to tests that are trying to use the linker. I think that's the right
fix? For reference, I've also attached the diff that this causes to the
configure script via autoconf.
Thanks,
Jameson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.ac.patch
Type: application/octet-stream
Size: 1783 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20190325/bfa6de73/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.diff
Type: application/octet-stream
Size: 16869 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20190325/bfa6de73/attachment-0003.obj>
More information about the gmp-bugs
mailing list