Bill Allombert on Tue, 28 Sep 2021 20:24:51 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: libpari-gmp.so.2.13.0 not being built with RUNPATH


Le Mon, Jan 04, 2021 at 05:20:23PM +0100, Bill Allombert a écrit :
> On Fri, Jan 01, 2021 at 12:48:30AM -0500, Jeffrey Walton wrote:
> > On Thu, Dec 31, 2020 at 9:43 PM Jeffrey Walton <noloader@gmail.com> wrote:
> > There were two problems. First, my LDFLAGS were not used in the
> > dynamic library recipe. Second, something blew away my LIBS.
> 
> You should probably use DLLDFLAGS instead of LDFLAGS.
> 
> As a point of information, PARI is built everyday with asan with gcc 8,
> see
> https://pari.math.u-bordeaux.fr/buildlogs/cd3f6a55-9aed-4853-93de-4c653a4e117e
> 
> Later versions of gcc have an inconsistent behavior that leads to -ldl
> to be missed by Configure.

I finally managed to fix this. The issue is that ASAN provides dlopen but
not dlsym, and Configure only checked for dlopen, which lead to -ldl to
be missing. I changed Configure to check also for dlsym.

Cheers,
Bill.