On Tue, Sep 4, 2012 at 4:46 PM, Ludovic Rousseau <ludovic.rouss...@gmail.com> wrote: > 2012/9/4 Xiaofan Chen <xiaof...@gmail.com>: >> Here are two links from libusb mailing list, saying to include the >> extra libraries needed for static linking in Libs.private in the pc file. >> http://libusb.6.n5.nabble.com/libusb-1-0-pc-files-when-static-linking-td43.html >> http://libusb.6.n5.nabble.com/How-to-use-static-linking-with-libusb-td5104747.html >> >> However, "pkg-config --static" does not return anything under >> my Mac OS X machine. Is that normal? If yes, then what is >> the command to use to retrieve the things inside Libs.private? > > Same result here on Debian: > $ pkg-config --static libusb-1.0 > $ pkg-config --libs libusb-1.0 > -lusb-1.0 > > I guess something is missing in the libusb-1.0.pc file.
Maybe this is related to this ticket in libusb.org. https://libusb.org/ticket/149 +++++++++++ http://people.freedesktop.org/~dbn/pkg-config-guide.html#faq My library z uses libx internally, but does not expose libx data types in its public API. What do I put in my z.pc file? Again, add the module to Requires.private if it supports pkg-config. In this case, the compiler flags will be emitted unnecessarily, but it ensures that the linker flags will be present when linking statically. If libx does not support pkg-config, add the necessary linker flags to Libs.private. +++++++++++ -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel