From: Vladimír Čunát Date: Fri, 17 May 2019 17:06:06 +0000 (+0200) Subject: kres-gen: make it work with static libkres as well X-Git-Tag: v4.1.0~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08129dc5efd2032b8aaba5bc6cf70f4c876e1d18;p=thirdparty%2Fknot-resolver.git kres-gen: make it work with static libkres as well --- diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index f0738e43d..118c63334 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -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