]> 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)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 17 May 2019 17:06:06 +0000 (19:06 +0200)
daemon/lua/kres-gen.sh

index a5702c5d156634e488d60b52f38adbd6fd1377a7..9b8b41ae266be827cf4c6041499dd8d36eedd9c6 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"
+end
 
 # Write to kres-gen.lua instead of stdout
 mv kres-gen.lua{,.bak} ||: