[clutter/wip/lantw/meson-dont-use-undocumented-export-dynamic-option] meson: don't use undocumented -export-dynamic option



commit 5738f47e00f0c21813d2941b90981e4bab5d72d9
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sat Sep 7 15:07:23 2019 +0800

    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.

 doc/cookbook/examples/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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, []))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]