On Sun, Nov 10, 2024 at 3:11 PM Michal Sapka <michal@sapka.me> wrote: > > > > On Sat, Nov 9, 2024, at 12:54 AM, Felipe Contreras wrote: > > On Fri, Nov 8, 2024 at 4:42 PM Michal Sapka <michal@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 > > Hey, > > I tried to add cflags to only configure or make but still - talloc not found. It's not just CFLAGS, you need to set LIBPATH too. According to the Makefile that should work. Did you try adding V=1 too? What's the final link command? make -C bindings/ruby V=1 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' -- Felipe Contreras _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org