1#!/bin/sh
2# SPDX-License-Identifier: GPL-3.0-or-later
3[ -d /root/kresd/build_packaging ] && rm -rf /root/kresd/build_packaging/;
4CFLAGS="$CFLAGS -Wall -pedantic -fno-omit-frame-pointer"
5LDFLAGS="$LDFLAGS -Wl,--as-needed"
6meson build_packaging \
7	--buildtype=plain \
8	--prefix=/root/kresd/install_packaging \
9	--libdir=lib \
10	--default-library=static \
11	-Ddoc=enabled \
12	-Dsystemd_files=enabled \
13	-Dclient=enabled \
14	-Dkeyfile_default=/usr/share/dns/root.key \
15	-Droot_hints=/usr/share/dns/root.hints \
16	-Dinstall_kresd_conf=enabled \
17	-Dunit_tests=enabled \
18	-Dc_args="${CFLAGS}" \
19	-Dc_link_args="${LDFLAGS}";
20