summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2019-09-07 15:07:23 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2019-09-07 15:09:38 +0800
commit4a381fa368894135dd9db31862e2663e00d1c9c5 (patch)
treeba5adb5be9bbdefb194a77bfc4b282c072b0b4a3
parent279ae7ed2207e1a873a5c955790b1aa4181206fb (diff)
downloadclutter-4a381fa368894135dd9db31862e2663e00d1c9c5.tar.gz
meson: Don't use undocumented -export-dynamic option
GNU libtool is documented to support -export-dynamic and GNU ld is documented to support --export-dynamic. However, GCC isn't documented to support them. While GCC does support -export-dynamic for backwards compatibility, Clang doesn't support it and interprets it wrongly. This causes warnings to be shown during linking because Clang splits it into '-e xport-dynamic' and the linker can't find 'xport-dynamic' symbol.
-rw-r--r--doc/cookbook/examples/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/cookbook/examples/meson.build b/doc/cookbook/examples/meson.build
index fef4828af..d17a7df21 100644
--- a/doc/cookbook/examples/meson.build
+++ b/doc/cookbook/examples/meson.build
@@ -58,7 +58,7 @@ foreach e: all_examples
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
'-DCLUTTER_DISABLE_DEPRECATION_WARNINGS',
],
- link_args: ['-export-dynamic'],
+ link_args: ['-Wl,--export-dynamic'],
)
example_data += files(example_src, e.get(2, []))