diff options
author | Haruue Icymoon <i@haruue.moe> | 2019-11-22 16:58:59 +0800 |
---|---|---|
committer | Gao Xiang <gaoxiang25@huawei.com> | 2019-11-22 22:54:26 +0800 |
commit | eefd95b37e1042992cb07bec1ac3f6dbe199d8f0 (patch) | |
tree | 071b0d1edb93f82b7b40cdb3b11e06379ee1caf3 | |
parent | dd37a983616706414e2e4232e2aa96b56a09fed6 (diff) |
erofs-utils: fix configure.ac
./configure will fail when --with-lz4-libdir is not set, since
$with_lz4_libdir will be an empty string and generate an empty -L
into LDFLAGS. This patch fixes it.
Link: https://lore.kernel.org/r/20191122085859.GA2414688@usamimi.host.haruue.net
Signed-off-by: Haruue Icymoon <i@haruue.moe>
Fixes: d51c2d043773 ("erofs-utils: introduce lz4/lz4hc compression algorithm")
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f925358..870dfb9 100644 --- a/configure.ac +++ b/configure.ac @@ -174,7 +174,7 @@ if test "x$enable_lz4" = "xyes"; then if test "x${have_lz4h}" = "xyes" ; then saved_LDFLAGS=${LDFLAGS} - LDFLAGS="-L$with_lz4_libdir ${LDFLAGS}" + test -z "${with_lz4_libdir}" || LDFLAGS="-L$with_lz4_libdir ${LDFLAGS}" AC_CHECK_LIB(lz4, LZ4_compress_destSize, [ have_lz4="yes" have_lz4hc="yes" |