]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
kres-gen: make it work with static libkres as well
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 17 May 2019 17:06:06 +0000 (19:06 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 3 Jul 2019 15:31:52 +0000 (17:31 +0200)
daemon/lua/kres-gen.sh

index f0738e43dd1dc829b32cfa76c37b2d22a31d757a..118c63334dba832cfd674bd55642f4ac808559f3 100755 (executable)
@@ -6,6 +6,10 @@ cd "$(dirname ${0})"
 CDEFS="../../scripts/gen-cdefs.sh"
 LIBKRES="${MESON_BUILD_ROOT}/lib/libkres.so"
 KRESD="${MESON_BUILD_ROOT}/daemon/kresd"
+if [ ! -e "$LIBKRES" ]; then
+       # We probably use static libkres.
+       LIBKRES="$KRESD"
+fi
 
 for REQFILE in "$CDEFS" "$LIBKRES" "$KRESD"
 do