Re: problem installing packs with foreign code

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 08/21/2013 02:45 PM, Samer Abdallah wrote:
> Hi all,
> I wonder if people have had any success installing packages which
> include C code that needs to be built?
> I've tried prosqlite and the environ test package, and in both cases,
> the linker fails with "library not found for -lswipl".
> This seems to be because the build environment does not
> include any library path flag - I would expect, eg for my system,
>
>	-L/usr/local/lib/swipl-6.5.1/lib/x86_64-darwin11.4.2

Just submitted a patch to add this if we think the system is not ELF
based. On ELF systems, we better not do this because without, the plugin
is more or less independent from the SWI-Prolog version.

> In my own test pack Makefile, I build with swipl-ld so it works fine, but in
> the case that there are multiple SWI installations, I have no guarantee that
> I'm calling the swipl-ld that belongs to the swipl that is currently running.

You can tell swipl-ld which Prolog to use, and the running Prolog is
available in $SWIPL.  Anyway, LDSOFLAGS should now do the job.  Was
on the agenda for some time, but I forgot.

	Thanks --- Jan
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.