Bill Allombert on Fri, 04 Sep 2009 14:15:10 +0200

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

Re: [PATCH] Dynamic Linking fixes for NetBSD/amd64

On Thu, Sep 03, 2009 at 08:16:17AM +0200, Lorenz Minder wrote:
> Hi,
> I need the following patches to build and run PARI on NetBSD/amd64 with
> dynamic libraries.  The first one sets the -fPIC flag on compile, the

Hello Lorenz,
Your first part of your patch looks wrong somehow, as if you were working
around some breakage of Configure. What does config/arch-osname report on this
machine ?  For example, -fPIC should be already set if arch-osname report this
is a 64bit x86_64 machine. 

> second patch makes it possible to specify additional DLLDFLAGS on the
> command line to ./Configure.  This is useful because NetBSD's packages
> are by default stored in /usr/pkg, and the dynamic linker does not know
> about that location; so you want to supply an -rpath option to link
> against GMP or readline (unless you compile those by hand as well).

This patch is correct, but this seems like an odd system: if package belong in
/usr/pkg/lib, then why is not the dynamic loader configured to look there ?