Skip to contentSkip to conversation

erofs-utils: fix --with-lz4-libdir when lz4_force_static is off

PATCH New Gao Xiang 1 participant 1 message Aug 17, 2021

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 erofs-utils: fix --with-lz4-libdir when lz4_force_static is off

--with-lz4-libdir doesn't work for lz4 1.9.x, hopefully it works for all cases now.

Fixes c497d89e5eac ("erofs-utils: enhance static linking for lz4 1.8.x")
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 38c371c4910f..35106094d9f9 100644
@@ -285,7 +285,7 @@ if test "x${have_lz4}" = "xyes"; then
     LZ4_LIBS="-Wl,-Bstatic -Wl,-whole-archive -Xlinker ${LZ4_LIBS} -Wl,-no-whole-archive -Wl,-Bdynamic"
     test -z "${with_lz4_libdir}" || LZ4_LIBS="-L${with_lz4_libdir} $LZ4_LIBS"
   else
-    test -z "${with_lz4_libdir}" || LZ4_LIBS="-R${with_lz4_libdir} $LZ4_LIBS"
+    test -z "${with_lz4_libdir}" || LZ4_LIBS="-L${with_lz4_libdir} -R${with_lz4_libdir} $LZ4_LIBS"
   fi
   liblz4_LIBS="${LZ4_LIBS}"
 fi
Signature · 1 line
2.20.1