Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0.28
-
None
-
FreeBSD build.brnrd.eu 11.0-RELEASE-p3 FreeBSD 11.0-RELEASE-p3 #0 r308890: Sun Nov 20 20:27:48 CET 2016 bernard@meterkast.brnrd.eu:/usr/obj/usr/src/sys/BEASTIE110 amd64
Description
CMake fails to add the library path for lz4 to the linker script. This causes an issue during linking where -llz4 fails.
Adding the path to `liblz4.so` to link.txt fixes the issue for me.
sed -i .bak -e 's|-llz4|-L${LOCALBASE}/lib -llz4|'} \
|
${WRKSRC}/storage/mroonga/CMakeFiles/mroonga.dir/link.txt
|
`LOCALBASE` in FreeBSD is set to /usr/local and liblz4 is installed there.
/usr/local/lib/liblz4.so
|
/usr/local/lib/liblz4.so.1
|
/usr/local/lib/liblz4.so.1.7.1
|
/usr/local/libdata/pkgconfig/liblz4.pc
|
Detection of lz4 is apparently OK otherwise the code in CMakeLists would return an error.