1 |
ssuominen 10/06/29 15:39:28 |
2 |
|
3 |
Added: tasks-0.16-asneeded.patch |
4 |
Log: |
5 |
Fix building testsuite with -Wl,--as-needed wrt #294878 by Kacper Kowalik. |
6 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 gnome-extra/tasks/files/tasks-0.16-asneeded.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/tasks/files/tasks-0.16-asneeded.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/tasks/files/tasks-0.16-asneeded.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tasks-0.16-asneeded.patch |
15 |
=================================================================== |
16 |
--- libkoto/Makefile.am |
17 |
+++ libkoto/Makefile.am |
18 |
@@ -1,6 +1,8 @@ |
19 |
+ALL_LIBS = $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) |
20 |
+ALL_CFLAGS = $(GTK_CFLAGS) $(ECAL_CFLAGS) $(SEXY_CFLAGS) |
21 |
+ |
22 |
localedir = $(datadir)/locale |
23 |
-AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" $(WARN_CFLAGS) $(GTK_CFLAGS) $(ECAL_CFLAGS) $(SEXY_CFLAGS) |
24 |
-AM_LDFLAGS = $(GTK_LIBS) $(ECAL_LIBS) $(SEXY_LIBS) |
25 |
+AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" $(WARN_CFLAGS) $(ALL_CFLAGS) |
26 |
|
27 |
# Really nasty, but I don't want to check for this every time I want to use |
28 |
# g_date_set_time_t. |
29 |
@@ -8,6 +10,8 @@ |
30 |
AM_CPPFLAGS += -D'g_date_set_time_t(d,t)=g_date_set_time(d,t)' |
31 |
endif |
32 |
|
33 |
+LINK = $(CCLD) $(ALL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(ALL_LIBS) |
34 |
+ |
35 |
noinst_LIBRARIES = libkoto.a |
36 |
libkoto_a_SOURCES = \ |
37 |
ical-util.h ical-util.c \ |
38 |
@@ -38,13 +42,18 @@ |
39 |
koto-utils.h koto-utils.c \ |
40 |
koto-platform.h |
41 |
|
42 |
- |
43 |
TESTS = test-group-store test-ical-util test-date-parser |
44 |
check_PROGRAMS = test-group-store test-ical-util test-date-parser |
45 |
|
46 |
test_group_store_SOURCES = test-koto-group-store.c koto-group-store.c koto-category-group.c koto-group.c ical-util.c |
47 |
+test_group_store_LDADD = $(ALL_LIBS) |
48 |
+test_group_store_CFLAGS = $(ALL_CFLAGS) |
49 |
|
50 |
test_ical_util_SOURCES = test-ical-util.c ical-util.c |
51 |
+test_ical_util_LDADD = $(ALL_LIBS) |
52 |
+test_ical_util_CFLAGS = $(ALL_CFLAGS) |
53 |
|
54 |
test_date_parser_SOURCES = koto-date-parser.c |
55 |
test_date_parser_CPPFLAGS = $(AM_CPPFLAGS) -DBUILD_TESTS=1 |
56 |
+test_date_parser_LDADD = $(ALL_LIBS) |
57 |
+test_date_parser_CFLAGS = $(ALL_CFLAGS) |