automake
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]