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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] [RFC] Removing .la files
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BRFC%5D%20Removing%20.la%20files&In-Reply-To=%3C20110610142635.GD4719%40bkor.dhs.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="005357.html">
<LINK REL="Next" HREF="005362.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] [RFC] Removing .la files</H1>
<B>Olav Vitters</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BRFC%5D%20Removing%20.la%20files&In-Reply-To=%3C20110610142635.GD4719%40bkor.dhs.org%3E"
TITLE="[Mageia-dev] [RFC] Removing .la files">olav at vitters.nl
</A><BR>
<I>Fri Jun 10 16:26:35 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="005357.html">[Mageia-dev] [RFC] Removing .la files
</A></li>
<LI>Next message: <A HREF="005362.html">[Mageia-dev] [RFC] Removing .la files
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5358">[ date ]</a>
<a href="thread.html#5358">[ thread ]</a>
<a href="subject.html#5358">[ subject ]</a>
<a href="author.html#5358">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Fri, Jun 10, 2011 at 04:15:01PM +0200, Christiaan Welvaart wrote:
><i> ><A HREF="https://live.gnome.org/GnomeShell/RemovingLaFiles">https://live.gnome.org/GnomeShell/RemovingLaFiles</A>
</I>><i>
</I>><i> "... but the dirty hacks that jhbuild plays ..."
</I>><i>
</I>><i> Problems with dirty hacks are NOT a valid reason to remove libtool
</I>><i> convenience libraries aka .la files.
</I>
Seems you skipped the initial bit, where it explains that the .la has
the full path.
><i> >Seems some distributions misunderstand the need and changed the wiki
</I>><i> >page. Removing .la files is needed however, otherwise you'll quickly mix
</I>><i> >distribution installed libraries and self-compiled libraries.
</I>><i>
</I>><i> What are you talking about here?
</I>
"The particular problem with these .la files is that they have hardcoded
paths in them. So, for example, if /usr/lib/libgnome-menu.so just
contains the information that it requires libglib-2.0.so.0 but
/usr/lib/libgnome-menu.la says that it wants /usr/lib/libglib-2.0.la, it
causes libtool to link against /usr/lib/libglib-2.0.so at link time.
This is fine for a lot of typical build scenarios, but the dirty hacks
that jhbuild plays to get it to sandbox your system understandably
breaks. "
><i> >Difficulty is that this only works when you remove *all* .la files. If
</I>><i> >only one is left compilation is broken.
</I>><i>
</I>><i> It is more likely that your build system is broken. If you do not
</I>><i> want to link against system libraries, remove /lib and /usr/lib from
</I>><i> the library search dirs list.
</I>
That's not enough, the .la files add libraries in /lib and /usr/lib.
Fedora has for instance already removed the .la files. Other
distributions are working on it (even Debian).
--
Regards,
Olav
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="005357.html">[Mageia-dev] [RFC] Removing .la files
</A></li>
<LI>Next message: <A HREF="005362.html">[Mageia-dev] [RFC] Removing .la files
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5358">[ date ]</a>
<a href="thread.html#5358">[ thread ]</a>
<a href="subject.html#5358">[ subject ]</a>
<a href="author.html#5358">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|