[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PKG_CHECK_MODULES on system without pkg-config installed?
From: |
Jef Driesen |
Subject: |
Re: PKG_CHECK_MODULES on system without pkg-config installed? |
Date: |
Sun, 13 Mar 2011 08:57:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 |
On 10/03/11 11:38, Vincent Torri wrote:
You also have to support static linking.
Does pkg-config support static linking? When I tried to build my own project,
which checks for libusb using the PKG_CHECK_MODULES macro, it doesn't seem to
link statically against libusb.
My project consist of a library and a few sample applications using that
library. I ran configure as follows:
$ ./configure --disable-shared
and then built the whole project.
$ make
$ ldd examples/universal
linux-vdso.so.1 => (0x00007fff04fff000)
libusb-1.0.so.0 => /lib/libusb-1.0.so.0 (0x00007fcb15e51000)
librt.so.1 => /lib/librt.so.1 (0x00007fcb15c49000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fcb15a2b000)
libc.so.6 => /lib/libc.so.6 (0x00007fcb156a8000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcb16085000)
As you can see my own library got linked statically, but not libusb. Am I doing
something wrong, or is this not possible?
Jef
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, (continued)
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Miles Bader, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Vincent Torri, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Roger Leigh, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Miles Bader, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Ralf Wildenhues, 2011/03/11
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Daniel Herring, 2011/03/11
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Ralf Corsepius, 2011/03/11
- RE: PKG_CHECK_MODULES on system without pkg-config installed?, Xochitl Lunde, 2011/03/11
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Baurzhan Ismagulov, 2011/03/11
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Steffen Dettmer, 2011/03/11
- Re: PKG_CHECK_MODULES on system without pkg-config installed?,
Jef Driesen <=
- Message not available
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Jef Driesen, 2011/03/13
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Dave Hart, 2011/03/10
- RE: PKG_CHECK_MODULES on system without pkg-config installed?, Jef Driesen, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Dave Hart, 2011/03/10
- Re: PKG_CHECK_MODULES on system without pkg-config installed?, Jef Driesen, 2011/03/10
PKG_CHECK_MODULES on system without pkg-config installed?, Jef Driesen, 2011/03/05