]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: use proper etc_dir location
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 25 Jan 2019 12:57:28 +0000 (13:57 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:41:48 +0000 (10:41 +0100)
daemon/meson.build
meson.build

index 37db785b5b4242bcdf390a48df5b26e074caead1..cefd0bfbf5bc193af1cf2955c2f94832e75e197b 100644 (file)
@@ -31,8 +31,7 @@ luajit_has_setfuncs = run_command(
 # daemon CFLAGS
 c_args = [
   '-fPIE',  # TODO pie=true since 0.49.0
-  '-DROOTHINTS="@0@/root.hints"'.format(
-      join_paths(get_option('prefix'), get_option('sysconfdir'))),
+  '-DROOTHINTS="@0@/root.hints"'.format(etc_dir),
   '-DLIBEXT="@0@"'.format(lib_suffix),
   '-Dlibzscanner_SONAME="@0@"'.format(libzscanner.get_pkgconfig_variable('soname')),
   '-Dlibknot_SONAME="@0@"'.format(libknot.get_pkgconfig_variable('soname')),
index 8f3a44fac62f1faf52c133986a30eac804055b82..6fb958e7a14e3fddfb0a91c4c98dc58eba139e37 100644 (file)
@@ -6,6 +6,7 @@ project(
 )
 
 libkres_soversion = 9
+
 if get_option('modules_dir') == ''
   modules_dir = join_paths(
     get_option('prefix'), get_option('libdir'), 'knot-resolver')
@@ -14,6 +15,8 @@ else
 endif
 message('modules_dir: ' + modules_dir)
 
+etc_dir = join_paths(get_option('prefix'), get_option('sysconfdir'), 'knot-resolver')
+
 
 # Project-wide dependencies
 
@@ -183,4 +186,4 @@ install_data(
 
 # etc
 
-install_data(sources: 'etc/root.hints', install_dir: get_option('sysconfdir'))
+install_data(sources: 'etc/root.hints', install_dir: etc_dir)