--- a/widget/gtk/mozgtk/gtk2/moz.build 2016-05-12 13:13:34.000000000 -0400 +++ b/widget/gtk/mozgtk/gtk2/moz.build 2016-11-14 19:19:09.780608561 -0500 @@ -20,18 +20,18 @@ # we need to add -Wl,--no-as-needed before the gtk libraries, otherwise the # linker will drop those dependencies because no symbols are used from them. # But those dependencies need to be kept for things to work properly. # Ideally, we'd only add -Wl,--no-as-needed if necessary, but it's just simpler # to add it unconditionally. This library is also simple enough that forcing # -Wl,--as-needed after the gtk libraries is not going to make a significant # difference. if CONFIG['GCC_USE_GNU_LD']: - no_as_needed = ['-Wl,--no-as-needed'] - as_needed = ['-Wl,--as-needed'] + no_as_needed = [] + as_needed = [] else: no_as_needed = [] as_needed = [] OS_LIBS += [f for f in CONFIG['MOZ_GTK2_LIBS'] if f.startswith('-L')] OS_LIBS += no_as_needed OS_LIBS += [ 'gtk-x11-2.0', --- a/widget/gtk/mozgtk/gtk3/moz.build 2016-05-12 13:13:34.000000000 -0400 +++ b/widget/gtk/mozgtk/gtk3/moz.build 2016-11-14 19:19:37.216476319 -0500 @@ -18,18 +18,18 @@ # we need to add -Wl,--no-as-needed before the gtk libraries, otherwise the # linker will drop those dependencies because no symbols are used from them. # But those dependencies need to be kept for things to work properly. # Ideally, we'd only add -Wl,--no-as-needed if necessary, but it's just simpler # to add it unconditionally. This library is also simple enough that forcing # -Wl,--as-needed after the gtk libraries is not going to make a significant # difference. if CONFIG['GCC_USE_GNU_LD']: - no_as_needed = ['-Wl,--no-as-needed'] - as_needed = ['-Wl,--as-needed'] + no_as_needed = [] + as_needed = [] else: no_as_needed = [] as_needed = [] OS_LIBS += [f for f in CONFIG['MOZ_GTK3_LIBS'] if f.startswith('-L')] OS_LIBS += no_as_needed OS_LIBS += [ 'gtk-3',