Re: Make fails with xapian custom installation

2021-12-09 Thread Al Haji-Ali


On 09/12/2021, David Bremner wrote:
> Does it help if you set LDFLAGS on the make command line?  Looking at
> Makefile.global,  LDFLAGS are added before the other computed flags. So
> something like
>
> % make V=1 LDFLAGS=-L/home/al/.local/stow/xapian/lib

Yep, this works. Thanks!

I feel that gcc should really have a right-to-left order rather than 
left-to-right libraries are usually preceded by their directory (like in 
xapian-config and pkg-config). It's curious that I never ran into this problem 
before.

-- Al
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Make fails with xapian custom installation

2021-12-09 Thread David Bremner
Al Haji-Ali  writes:

> On 09/12/2021, David Bremner wrote:
>> configure actually invokes xapian-config rather than pkg-config (I
>> forget why offhand). So you probably need to set XAPIAN_CONFIG in the
>> environment to the one in your /home when running configure.
>
> Ah OK. My xapian-config is also correctly configured
>
> ,
> | ~ xapian-config --libs
> | -L/home/al/.local/stow/xapian/lib -lxapian
> `
>
> Notmuch's configure has the correct paths for Xapian as seen in the 
> compilation command I included before. The issue is the order of library 
> folders.
>
> -- Al

Does it help if you set LDFLAGS on the make command line?  Looking at
Makefile.global,  LDFLAGS are added before the other computed flags. So
something like

% make V=1 LDFLAGS=-L/home/al/.local/stow/xapian/lib

___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Make fails with xapian custom installation

2021-12-09 Thread Al Haji-Ali


On 09/12/2021, David Bremner wrote:
> configure actually invokes xapian-config rather than pkg-config (I
> forget why offhand). So you probably need to set XAPIAN_CONFIG in the
> environment to the one in your /home when running configure.

Ah OK. My xapian-config is also correctly configured

,
| ~ xapian-config --libs
| -L/home/al/.local/stow/xapian/lib -lxapian
`

Notmuch's configure has the correct paths for Xapian as seen in the compilation 
command I included before. The issue is the order of library folders.

-- Al
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: Make fails with xapian custom installation

2021-12-09 Thread David Bremner
Al Haji-Ali  writes:

> Hello,
>
> I have an old version of Xapian installed in root and a new one installed in 
> my home folder which I want to use. My pkgconfig is configured correctly
>
> ,
> | ~ pkg-config --libs xapian-core
> | -L/home/al/.local/stow/xapian/lib -lxapian
> `
>

configure actually invokes xapian-config rather than pkg-config (I
forget why offhand). So you probably need to set XAPIAN_CONFIG in the
environment to the one in your /home when running configure.

d
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org