]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: Initialize sysconfdir
authorDaniel Wagner <dwagner@suse.de>
Tue, 14 Mar 2023 13:18:40 +0000 (14:18 +0100)
committerDaniel Wagner <wagi@monom.org>
Tue, 14 Mar 2023 13:33:50 +0000 (14:33 +0100)
The default sysconfdir needs to be initialize so that Meson and muon
expand to the same final result using join_paths().

Fixes: f6100dd16b49 ("build: Use prefixdir directly on sysconfdir")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build

index 666027d6681affb84db6ed8c93cf02556fca0899..45d1d2b341bfa19b0eba808620497168b22e9afd 100644 (file)
@@ -15,6 +15,7 @@ project(
         'warning_level=1',
         'buildtype=debug',
         'prefix=/usr/local',
+        'sysconfdir=etc',
     ]
 )
 
@@ -31,7 +32,7 @@ includedir = join_paths(prefixdir, get_option('includedir'))
 datadir    = join_paths(prefixdir, get_option('datadir'))
 mandir     = join_paths(prefixdir, get_option('mandir'))
 bindir     = join_paths(prefixdir, get_option('bindir'))
-sysconfdir = prefixdir + get_option('sysconfdir')
+sysconfdir = join_paths(prefixdir, get_option('sysconfdir'))
 
 ################################################################################
 conf = configuration_data()