Lines 20-37
Link Here
|
20 |
# we need to add -Wl,--no-as-needed before the gtk libraries, otherwise the |
20 |
# we need to add -Wl,--no-as-needed before the gtk libraries, otherwise the |
21 |
# linker will drop those dependencies because no symbols are used from them. |
21 |
# linker will drop those dependencies because no symbols are used from them. |
22 |
# But those dependencies need to be kept for things to work properly. |
22 |
# But those dependencies need to be kept for things to work properly. |
23 |
# Ideally, we'd only add -Wl,--no-as-needed if necessary, but it's just simpler |
23 |
# Ideally, we'd only add -Wl,--no-as-needed if necessary, but it's just simpler |
24 |
# to add it unconditionally. This library is also simple enough that forcing |
24 |
# to add it unconditionally. This library is also simple enough that forcing |
25 |
# -Wl,--as-needed after the gtk libraries is not going to make a significant |
25 |
# -Wl,--as-needed after the gtk libraries is not going to make a significant |
26 |
# difference. |
26 |
# difference. |
27 |
if CONFIG['GCC_USE_GNU_LD']: |
27 |
if CONFIG['GCC_USE_GNU_LD']: |
28 |
no_as_needed = ['-Wl,--no-as-needed'] |
28 |
no_as_needed = [] |
29 |
as_needed = ['-Wl,--as-needed'] |
29 |
as_needed = [] |
30 |
else: |
30 |
else: |
31 |
no_as_needed = [] |
31 |
no_as_needed = [] |
32 |
as_needed = [] |
32 |
as_needed = [] |
33 |
|
33 |
|
34 |
OS_LIBS += [f for f in CONFIG['MOZ_GTK2_LIBS'] if f.startswith('-L')] |
34 |
OS_LIBS += [f for f in CONFIG['MOZ_GTK2_LIBS'] if f.startswith('-L')] |
35 |
OS_LIBS += no_as_needed |
35 |
OS_LIBS += no_as_needed |
36 |
OS_LIBS += [ |
36 |
OS_LIBS += [ |
37 |
'gtk-x11-2.0', |
37 |
'gtk-x11-2.0', |