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

Bill Allombert <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <YVNd7S0sY7brg2wx@seventeen>
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 <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.