Closed neeraj9 closed 1 year ago
Libzim shoukd be linked to libbz2, not the the zim-tools... and for sure not zimwriterfs.
@neeraj9 Please open a ticket describing exactly what does not work.
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libmagic.a(compress.o): in function `uncompressbuf
This is libmagic which use bz2. We don't.
We use a somehow old way to detect magic library and it as been probably made this way as libmagic didn't provide a libmagic.pc
at the time. Now it is the case so we would better fix the dependency to libmagic.
sounds good.
I have tested the changes on Raspberry Pi 4, Model B.
The earlier version did not work as-is because of the failure with libbz2, which this change attempts to fix. The build fails as follows with the following error without this change.