libftdi Archives

Subject: RE: libftdi-config --libs

From: xantares 09 <xantares09@xxxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Sep 2012 14:57:30 +0000


> Date: Mon, 3 Sep 2012 22:06:19 +0800
> Subject: Re: libftdi-config --libs
> From: xiaofanc@xxxxxxxxx
> To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
>
> On Mon, Sep 3, 2012 at 6:16 PM, xantares 09 <xantares09@xxxxxxxxxxx> wrote:
> > Spotted another one: shouldn't 'libftdi-config --libs' return the usb
> > libraries ?
> > Before configuring, it seems LIBS is empty.
>
> It seems to be okay to me since now 'libftdi-config --libs' returns
> '-L/usr/local/lib -lftdi1' which should be correct.
>
> But if you want to point the user for possible static linking,
> then yes libusb-1.0 library should be included for that,
> supposedly it can be something like this.
> https://github.com/libusbx/libusbx/blob/master/libusb-1.0.pc.in
> But I just tried to use "pkg-config --static libusb-1.0" and yet
> it returns nothing under my Mac OS X machine.
>
> --
> Xiaofan
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
>

Hi,

Shouldn't it be the contrary ?
I mean if you want to build a shared library, you have to pass all the libraries containing the dso reference.
And if you build statically, all the symbols are included and you don't have to pass any other libraries to link to.

M.


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread