diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-23 20:45:07 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-28 16:19:44 +0100 |
commit | cc413ce9a368b930aba5e63c0ab013f7b3ab3c04 (patch) | |
tree | 2388f0727621ec558c9f50990d9b45bb45a58814 /mysys/my_create.c | |
parent | 370cf70136778b4b89bc3d3d2dfc8a35c7f98478 (diff) | |
download | mariadb-git-cc413ce9a368b930aba5e63c0ab013f7b3ab3c04.tar.gz |
MDEV-11753 Link failure on missing -L${LIBLZ4_LIBRARY_DIR}
On FreeBSD liblz4 is installed in /usr/local/lib.
Groonga uses pkg_check_modules to check for liblz4 (that is, pkg-config),
and then it used to set for libgroonga.a
link_directories({$LIBLZ4_LIBRARY_DIRS})
target_link_libraries(... ${LIBLZ4_LIBRARIES})
Now groonga is a static library, linked into ha_mroonga.so. CMake won't
link dynamic liblz4.so into libgroonga.a, instead it'll pass it as a
dependency and will link it into ha_mroonga.so. Fine so far. But it will
not pass link_directories from the static library as a dependency,
so ha_mroonga.so won't find liblz4.so
As suggested on cmake mailing list (e.g.
here: http://public.kitware.com/pipermail/cmake/2011-November/047468.html)
we switch to use the full path to liblz4.so, instead of the -l/-L pair.
Diffstat (limited to 'mysys/my_create.c')
0 files changed, 0 insertions, 0 deletions