Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2017 10:44:42 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        blubee blubeeme <gurenchan@gmail.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: gnu ltdl and FreeBSD
Message-ID:  <20171016104442.2ae8931f@kalimero.tijl.coosemans.org>
In-Reply-To: <CALM2mE=Pdqrv_2k7KVTQruZ8cFkQpypvy6Qn5OYfcWR7cv5mJA@mail.gmail.com>
References:  <CALM2mE=Pdqrv_2k7KVTQruZ8cFkQpypvy6Qn5OYfcWR7cv5mJA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Oct 2017 13:37:57 +0800 blubee blubeeme <gurenchan@gmail.com> wrote:
> I'm trying to port some software that keeps failing when it tries to find a
> config.h.
> 
> I know the config.h file is there but I think the compilation is failing
> because it's trying to build ltdl and freebsd doesn't need that since
> freebsd already has dlopen in libc.
> 
> Which configure flag could I try to get rid of building that lib? The full
> configure --help file is below.
> 
> My current makefile has these settings:
> HAS_CONFIGURE=   yes

This should be GNU_CONFIGURE=yes.

> CONFIGURE_ARGS=  --without-included-ltdl --disable-ltdl-install
> USES=            autoreconf gmake

Here you should add "libtool" to USES.

And maybe the code really needs libltdl.  See if there are any calls to
lt_dlinit or lt_dlopen.  You can then add this dependency:

LIB_DEPENDS=	libltdl.so:devel/libltdl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171016104442.2ae8931f>