[gnome-todo] eds: clang does not support -u compiler option



commit 4238eb66851957b914dff43eda1aaa38fa7a49b1
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Fri Apr 22 01:47:45 2016 +0800

    eds: clang does not support -u compiler option
    
    It seems gcc simply passes the -u option to the linker, so this commit
    replaces the compiler option with the linker option, which fix the build
    or runtime problem when compiling with clang. To keep consistent with
    existing LDFLAGS, the long option is used instead of the short option.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760847

 src/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index aa891bf..428226d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -94,7 +94,7 @@ gnome_todo_CFLAGS = \
 
 gnome_todo_LDFLAGS = \
        -Wl,--export-dynamic \
-       -u gtd_plugin_eds_register_types \
+       -Wl,--undefined=gtd_plugin_eds_register_types \
        $(GNOME_TODO_WARN_LDFLAGS)
 
 gnome_todo_LDADD = \


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