[Bug libgomp/91694] configure.ac does not correctly check for gethostname
rishi@extreme-scale.com
gcc-bugzilla@gcc.gnu.org
Sun Sep 8 04:30:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91694
Rishi Khan <rishi@extreme-scale.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rishi@extreme-scale.com
--- Comment #1 from Rishi Khan <rishi@extreme-scale.com> ---
To clarify further, configure.ac instructs to see if the program can compile
and produce a *.o file. This works, with a warning but not error returned.
However, a system that does not have gethostname will not link properly. That
is why I think it should be AC_LINK_IFELSE instead of AC_COMPILE_IFELSE. There
are a few other AC_COMPILE_IFELSE that should also be looked at. I think they
may suffer the same problem.
More information about the Gcc-bugs
mailing list