|
From: | Mohammad Akhlaghi |
Subject: | Re: AC_LIB_HAVE_LINKFLAGS: linking with static library on macOS |
Date: | Mon, 27 May 2019 13:31:50 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |