forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gimp-2.8.10-clang.patch
204 lines (183 loc) · 7.49 KB
/
gimp-2.8.10-clang.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
--- app/Makefile.am
+++ app/Makefile.am
@@ -120,29 +120,29 @@
# FIXME: core should not depend on xcf
workaround_that_core_depends_on_xcf = \
- -u $(SYMPREFIX)xcf_init
+ -Wl,-u,$(SYMPREFIX)xcf_init
# FIXME: core should not depend on pdb
workaround_that_core_depends_on_pdb = \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore
# FIXME: plug-in should not depend on pdb
workaround_that_plug_in_depends_on_pdb = \
- -u $(SYMPREFIX)gimp_pdb_compat_param_spec
+ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec
# FIXME: file should not depend on plug-in
workaround_that_file_depends_on_plug_in = \
- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
- -u $(SYMPREFIX)gimp_image_map_config_get_type
+ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type
# core, vectors and gegl are on the same architectural layer, prevent
# the linker from panicing
calm_down_linker = \
- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
- -u $(SYMPREFIX)gimp_curve_map_pixels
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
AM_LDFLAGS = \
$(munix) \
--- app/Makefile.in
+++ app/Makefile.in
@@ -702,33 +702,33 @@
# FIXME: core should not depend on xcf
workaround_that_core_depends_on_xcf = \
- -u $(SYMPREFIX)xcf_init
+ -Wl,-u,$(SYMPREFIX)xcf_init
# FIXME: core should not depend on pdb
workaround_that_core_depends_on_pdb = \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore
# FIXME: plug-in should not depend on pdb
workaround_that_plug_in_depends_on_pdb = \
- -u $(SYMPREFIX)gimp_pdb_compat_param_spec
+ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec
# FIXME: file should not depend on plug-in
workaround_that_file_depends_on_plug_in = \
- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
- -u $(SYMPREFIX)gimp_image_map_config_get_type
+ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type
# core, vectors and gegl are on the same architectural layer, prevent
# the linker from panicing
calm_down_linker = \
- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
- -u $(SYMPREFIX)gimp_curve_map_pixels
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
AM_LDFLAGS = \
$(munix) \
--- app/tests/Makefile.am
+++ app/tests/Makefile.am
@@ -63,22 +63,22 @@
# We need this due to circular dependencies, see more detailed
# comments about it in app/Makefile.am
AM_LDFLAGS = \
- -u $(SYMPREFIX)xcf_init \
- -u $(SYMPREFIX)base_init \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
- -u $(SYMPREFIX)gimp_pdb_compat_param_spec \
- -u $(SYMPREFIX)gui_init \
- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
- -u $(SYMPREFIX)gimp_image_map_config_get_type \
- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
- -u $(SYMPREFIX)actions_init \
- -u $(SYMPREFIX)gimp_error_dialog_new \
- -u $(SYMPREFIX)menus_save \
- -u $(SYMPREFIX)gimp_tools_save \
- -u $(SYMPREFIX)gimp_curve_map_pixels
+ -Wl,-u,$(SYMPREFIX)xcf_init \
+ -Wl,-u,$(SYMPREFIX)base_init \
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
+ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
+ -Wl,-u,$(SYMPREFIX)gui_init \
+ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)actions_init \
+ -Wl,-u,$(SYMPREFIX)gimp_error_dialog_new \
+ -Wl,-u,$(SYMPREFIX)menus_save \
+ -Wl,-u,$(SYMPREFIX)gimp_tools_save \
+ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
# Note that we have some duplicate entries here too to work around
# circular dependencies and systems on the same architectural layer as
--- app/tests/Makefile.in
+++ app/tests/Makefile.in
@@ -1221,22 +1221,22 @@
# We need this due to circular dependencies, see more detailed
# comments about it in app/Makefile.am
AM_LDFLAGS = \
- -u $(SYMPREFIX)xcf_init \
- -u $(SYMPREFIX)base_init \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
- -u $(SYMPREFIX)gimp_pdb_compat_param_spec \
- -u $(SYMPREFIX)gui_init \
- -u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
- -u $(SYMPREFIX)gimp_image_map_config_get_type \
- -u $(SYMPREFIX)gimp_vectors_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
- -u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
- -u $(SYMPREFIX)actions_init \
- -u $(SYMPREFIX)gimp_error_dialog_new \
- -u $(SYMPREFIX)menus_save \
- -u $(SYMPREFIX)gimp_tools_save \
- -u $(SYMPREFIX)gimp_curve_map_pixels
+ -Wl,-u,$(SYMPREFIX)xcf_init \
+ -Wl,-u,$(SYMPREFIX)base_init \
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
+ -Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec \
+ -Wl,-u,$(SYMPREFIX)gui_init \
+ -Wl,-u,$(SYMPREFIX)plug_in_icc_profile_apply_rgb \
+ -Wl,-u,$(SYMPREFIX)gimp_image_map_config_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)gimp_vectors_prop_undo_get_type \
+ -Wl,-u,$(SYMPREFIX)actions_init \
+ -Wl,-u,$(SYMPREFIX)gimp_error_dialog_new \
+ -Wl,-u,$(SYMPREFIX)menus_save \
+ -Wl,-u,$(SYMPREFIX)gimp_tools_save \
+ -Wl,-u,$(SYMPREFIX)gimp_curve_map_pixels
# Note that we have some duplicate entries here too to work around
--- devel-docs/app/Makefile.am
+++ devel-docs/app/Makefile.am
@@ -62,10 +62,10 @@
-UGTK_DISABLE_SINGLE_INCLUDES
GTKDOC_LIBS = \
- -u $(SYMPREFIX)xcf_init \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_coords_mix \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
+ -Wl,-u,$(SYMPREFIX)xcf_init \
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_coords_mix \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
$(top_builddir)/app/app.o \
$(top_builddir)/app/batch.o \
$(top_builddir)/app/errors.o \
--- devel-docs/app/Makefile.in
+++ devel-docs/app/Makefile.in
@@ -511,10 +511,10 @@
-UGTK_DISABLE_SINGLE_INCLUDES
GTKDOC_LIBS = \
- -u $(SYMPREFIX)xcf_init \
- -u $(SYMPREFIX)internal_procs_init \
- -u $(SYMPREFIX)gimp_coords_mix \
- -u $(SYMPREFIX)gimp_plug_in_manager_restore \
+ -Wl,-u,$(SYMPREFIX)xcf_init \
+ -Wl,-u,$(SYMPREFIX)internal_procs_init \
+ -Wl,-u,$(SYMPREFIX)gimp_coords_mix \
+ -Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
$(top_builddir)/app/app.o \
$(top_builddir)/app/batch.o \
$(top_builddir)/app/errors.o \