LD Changes To Implicit DSO Linking Update

Adam Jackson ajax at redhat.com
Thu Feb 11 14:53:40 UTC 2010


On Wed, 2010-02-10 at 10:34 -0800, Adam Williamson wrote:
> On Wed, 2010-02-10 at 20:42 +0900, Mamoru Tasaka wrote:
> 
> > You should add "AC_CHECK_LIB(X11, XKeysymToString)" to configure.in,
> > for example.
> 
> It's nicer to use pkg-config for libraries which provide .pc files,
> isn't it? X11 does:
> 
> /usr/lib64/pkgconfig/x11.pc

Yes.  If you do

PKG_CHECK_MODULES(FOO, x11)

then FOO_LIBS and FOO_CFLAGS will be defined to the appropriate
libraries and cflags for libX11.  The second argument can be a list:

PKG_CHECK_MODULES(FOO, x11 xext sm)

will add the right things for all of libX11, libXext, and libSM.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100211/eb3dc326/attachment.bin 


More information about the devel mailing list