On Fri, Nov 8, 2024 at 4:42 PM Michal Sapka <mic...@sapka.me> wrote:
> > Tomi and Felipe giving me snippets to configure & compile.

> configure via
>
> CFLAGS=-I/opt/homebrew/Cellar/talloc/2.4.2/include 
> LDFLAGS='-L/opt/homebrew/Cellar/talloc/2.4.2/lib -ltalloc' ./config
>
> succeded.
>
> Then I try
>
> make -C bindings/ruby CFLAGS='-g -O2 -pipe -fno-plt -fPIC
> -I/opt/homebrew/Cellar/talloc/2.4.2/include' LIBPATH='-L. -L/usr/lib
> -L/opt/homebrew/Cellar/talloc/2.4.2/lib'

It's either in ./configure, or directly with make, not both.

> and I get
>
> sudo make -C bindings/ruby CFLAGS='-g -O2 -pipe -fno-plt -fPIC
> -I/opt/homebrew/Cellar/talloc/2.4.2/include' LIBPATH='-L. -L/usr/lib
> -L/opt/homebrew/Cellar/talloc/2.4.2/lib'
> linking shared-object notmuch.bundle
> Undefined symbols for architecture arm64:
>   "__talloc_free", referenced from:

You can also try adding V=1 to the make command to see what it's
actually doing, but if you have libtalloc.so in
/opt/homebrew/Cellar/talloc/2.4.2/lib, the command I suggested should
work.

Can you share the Makefile that is generated in bindings/ruby/Makefile ?

-- 
Felipe Contreras
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to