DSO and wrapper of a library

Enrico Weigelt weigelt at metux.de
Tue Aug 24 18:08:21 PDT 2010


* Vincent Torri <vincent.torri at gmail.com> schrieb:

> Libs: -L${libdir} -ledbus -L/lib -ldbus-1 -lpthread -lrt
                             ^^^^^
a) *NEVER* add system pathes to cflags/ldflags explicitly.
   There's great change to be really wrong here.

b) normal (non-bootup) libraries belong into /usr/lib
   (ah, and make sure that the libdir is not hardcoded, but will
    be filled w/ ${libdir} on .pc file generation ...)

c) depencencies's ldflags/cflags DO NOT belong directly into there,
   that's what "Requires:" and "Requires.private are for.

d) in case of the libraries uses types and functions for some
   depencency in its public interface, it should be "Requires:"
   instead of "Requires.private:", IMHO


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt at metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


More information about the pkg-config mailing list