From ad7fc34fa23ff89fcc42f19e312bf0f05b7ee710 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 14 Nov 2019 15:34:18 +0100 Subject: [PATCH] Build system updates (#307) * build: skip default prefix as '/usr' Distributions that ship this package will always provide the correct system prefix, sysconfdir, libdir and such. As a sane default, the package should use the meson default prefix set to '/usr/local', which is also the standard in many other build setups (e.g. autotools...). * build: print actual full paths in meson output Do not print the option values, print the full built paths. --- meson.build | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 8b9ec344f..f549d5974 100644 --- a/meson.build +++ b/meson.build @@ -21,7 +21,6 @@ project('open5gs', 'c', meson_version : '>= 0.43.0', default_options : [ 'c_std=gnu89', - 'prefix=/usr', ], ) @@ -120,11 +119,11 @@ endif message('\n'.join([ '', - ' prefix: ' + get_option('prefix'), - ' libdir: ' + get_option('libdir'), - ' bindir: ' + get_option('bindir'), - ' sysconfdir: ' + get_option('sysconfdir'), - ' localstatedir: ' + get_option('localstatedir'), + ' prefix: ' + prefix, + ' libdir: ' + libdir, + ' bindir: ' + bindir, + ' sysconfdir: ' + sysconfdir, + ' localstatedir: ' + localstatedir, ' source code location: ' + meson.source_root(), ' compiler: ' + cc.get_id(), ' debugging support: ' + get_option('buildtype'),