On 5/27/19 8:11 AM, Bruno Haible wrote:
Mohammad Akhlaghi wrote:
Generally, to avoid such crashes during the build, what do you think
about adding a check in `AC_LIB_HAVE_LINKFLAGS' to test this scenario
(see if the used libtool can link with the found static library)?
Getting a notice/warning/crash at configure time is much easier for a
user than during build time.
This was the first report of its kind in 15 years.
I would change AC_LIB_HAVE_LINKFLAGS if the issue was being reported
10 times in 5 years.
Good point!
Until then, I'll implement a test in Gnuastro after calling
`AC_LIB_HAVE_LINKFLAGS'.
Unfortunately this software (CFITSIO) doesn't install shared libraries
by default and its static libraries have this problem, so in the next
release that implements `AC_LIB_HAVE_LINKFLAGS', many Gnuastro users may
fall into this trap.
Thanks again,
Mohammad