]> git.ipfire.org Git - thirdparty/openvpn.git/commit
lz4: Fix broken builds when pkg-config is not present but system library is
authorDavid Sommerseth <davids@openvpn.net>
Mon, 2 Oct 2017 19:07:32 +0000 (21:07 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 2 Oct 2017 19:10:04 +0000 (21:10 +0200)
commite5b279f1b62e75569ee8d988b55e6ee0dc93464e
tree2144537023bea3dc1e44118adf5bdfe4efe08ffd
parentf91e4863bc138213a07a2cf53ad71d8a4532abef
lz4: Fix broken builds when pkg-config is not present but system library is

In commit f91e4863bc1382 we fixed an issue where LZ4_LIBS could be
overwritten in some situations.  But on systems where lz4 is installed on
the system but is lacking pkg-config information, the linker will not know
about the lz4 library when completing the build.

This fixes the issue by explicitly setting LZ4_LIBS to contain -llz4
if pkg-config test was run and failed verifying the installed lz4 version
number.  This also ensures that LZ4_LIBS will not be overwritten if it
has been provided on the ./configure command line.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20171002190732.12531-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15549.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac