]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
meson: Use export_dynmic: true instead of -rdynamic
authorRay Strode <rstrode@redhat.com>
Fri, 2 Dec 2022 01:11:38 +0000 (20:11 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 2 Dec 2022 01:14:17 +0000 (20:14 -0500)
It seems like specifying -rdynamic in meson cflags doesn't work
on some systems, but meson has a built in way of doing the same
thing:

export_dynamic: true

This commit switches over to the probably more right way of
achieving a working dlopen(NULL).

src/meson.build

index 704da46cf62dad2843cb624d0237cdf546244907..13ea0d98b03788eb9c346184ec47730bbb39bc4d 100644 (file)
@@ -26,13 +26,13 @@ plymouthd_cflags = [
   '-DPLYMOUTH_DRM_ESCROW_DIRECTORY="@0@"'.format(get_option('libexecdir') / 'plymouth'),
   '-DPLYMOUTH_LOG_DIRECTORY="@0@"'.format('/var/log'),
   '-DPLYMOUTH_SPOOL_DIRECTORY="@0@"'.format(plymouthd_spool_dir),
-  '-rdynamic',
 ]
 
 plymouthd = executable('plymouthd',
   plymouthd_sources,
   dependencies: plymouthd_deps,
   c_args: plymouthd_cflags,
+  export_dynamic: true,
   include_directories: config_h_inc,
   install: true,
   install_dir: get_option('sbindir'),