Citation:
Envoyé par
boboss123
ok, merci je vais chercher comment on fait pour créer un .a pour ma plateforme.
Il ne faut pas aussi mettre à quelque part dans la documentation qu'on utilise la glib ?
Si la réponse est oui, il faut mettre quoi exactement ? est-ce que l'afficher dans l'aide de ma commande grep suffira ou est-ce qu'il faut aussi que je le mette dans ma notice ?
C'est décrit au chapitre 4 de la LGPL :
Citation:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
-> indiquer dans la notice
Citation:
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
-> distribuer une copie de la LGPL (sous forme papier ou electronique)
Citation:
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
-> indiquer dans l'aide ou le "a propos"
Citation:
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
-> dans ton cas (0), fournir le ".o" de ton application (= le code compilé avant d'etre linké avec la librairie)
Citation:
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
-> Indiquer comment ton programme complet (executable) s'installe.
Citation:
C'est quoi l'intérêt pour les concepteurs de la lib de mettre cette restriction de link (car au final je ne vais pas modifier les sources) ?
L'intéret c'est qu'un utilisateur puisse reconstruire l'executable en utilisant une autre version de la librairie (mise a jour, version personnelle, ...)
Citation:
Pour la uClib, il est décrit que la toolchains est faite à base d'outils GNU (
http://www.uclibc.org/toolchains.html) : est-ce une obligation ou je peux aussi utiliser le compilateur de mon fondeur pour créer le .a (sachant que le compilateur est a priori une version modifiée de GNU gcc) ?
Tu peux la construire avec le compilateur de ton choix. Sur le site de uclibc, ils ont l'air de dire qu'il vaut mieux passer par leur toolchain, mais ca n'a rien d'obligatoire.