]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
script: Fix up build for script plugin
authorRay Strode <rstrode@redhat.com>
Tue, 15 Nov 2022 21:12:59 +0000 (16:12 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 15 Nov 2022 21:18:23 +0000 (16:18 -0500)
More problems uncovered by -Wl,--no-undefined

src/plugins/splash/script/generate_script_string_header.py
src/plugins/splash/script/meson.build

index 66e21ee245fcc861dbdaf55b895e885b021687aa..063f7a0bfeede7bf16852470379eff7e3fec6103 100644 (file)
@@ -11,7 +11,7 @@ if len(sys.argv) != 2:
 input_path = pathlib.Path(sys.argv[1])
 
 variable_name = input_path.stem.replace('-', '_')
-print('static const char *{} ='.format(variable_name))
+print('static const char *{}_string ='.format(variable_name))
 
 for line in input_path.read_text().splitlines():
     # escape backlashes
index c4e84fc83803c248ba7cb093f3ee6e4966f66166..c26c5cb6170d9f41f1ddc8498fbd0e51f1df0605 100644 (file)
@@ -41,7 +41,7 @@ script_plugin_src = files(
 )
 
 script_plugin = shared_module('script',
-  [ 'plugin.c', script_headers ],
+  [ script_headers, script_plugin_src ],
   dependencies: [
     libply_splash_core_dep,
     libply_splash_graphics_dep,