]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add PACKAGE definition
authorRosen Penev <rosenp@gmail.com>
Fri, 9 Sep 2022 02:12:33 +0000 (19:12 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 9 Sep 2022 02:44:14 +0000 (19:44 -0700)
In the transition to meson, it seems this was missing. Fixes compilation
when ENABLE_NLS is defined.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
meson.build

index 3185d2273aa426ac2f76f4632756f62ac329cccd..ee7619658ff9d24786531cd0456a98bef5c18c79 100644 (file)
@@ -36,9 +36,10 @@ add_project_arguments('-D_GNU_SOURCE', language : 'c')
 cc = meson.get_compiler('c')
 
 conf = configuration_data()
+conf.set_quoted('PACKAGE', meson.project_name())
+conf.set_quoted('PACKAGE_VERSION', meson.project_version())
 package_string = '@0@ @1@'.format(meson.project_name(), meson.project_version())
 conf.set_quoted('PACKAGE_STRING', package_string)
-conf.set_quoted('PACKAGE_VERSION', meson.project_version())
 
 codes = [''' {print $1}  ''',
          ''' {sub("-.*","",$2); print $2} ''',