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


Reply via email to