summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <[email protected]>2024-03-17 11:52:48 -0700
committerLuke from DC <[email protected]>2024-08-15 17:59:01 +0000
commitdc9c2eb24269ea925d98e2bebda2d7fde61c086d (patch)
tree5945183100b32e18a2e7ba9a054dc8e87839c9ab
parent1462391e13a746157924ce80b14d7fd68cd48430 (diff)
downloadmate-settings-daemon-dc9c2eb24269ea925d98e2bebda2d7fde61c086d.tar.bz2
mate-settings-daemon-dc9c2eb24269ea925d98e2bebda2d7fde61c086d.tar.xz
configure.ac: don't link plugins with -no-undefined
Many of the plugins depend on mate_settings_plugin_get_type(), but this symbol is only available at runtime in the mate-settings-daemon program. With GNU libtool the -no-undefined flag gets silently ignored and the build succeeds, but with slibtool it correctly sets -Wl,--no-undefined in the LDFLAGS causing the build to fail. To solve this simply removing -no-undefined is enough. Gentoo issue: https://bugs.gentoo.org/922326
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 571817a..a370771 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,7 +75,7 @@ PKG_CHECK_MODULES(SETTINGS_PLUGIN,
gio-2.0 >= $GIO_REQUIRED_VERSION
)
-MSD_PLUGIN_LDFLAGS="-export_dynamic -module -avoid-version -no-undefined"
+MSD_PLUGIN_LDFLAGS="-export_dynamic -module -avoid-version"
case $host_os in
darwin*)
MSD_PLUGIN_LDFLAGS="${MSD_PLUGIN_LDFLAGS} -Wl,-bundle_loader,\$(top_builddir)/mate-settings-daemon/mate-settings-daemon"