On Sun, Sep 9, 2012 at 3:17 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> The following patch what you want but it is not accepted.
> http://openocd.zylin.com/#/c/491/
>
> As Peter Stuge mentioned in the comments, you can
> always manually specify CFLAGS and LDFLAGS to
> make configure find libusb-1.0 so that the patch is
> not necessary.

Hello Xiao and thank you for fast response :-)

I did not know that thread, your patch is exactly what I meant. I have
tried creating .pc files but this does not help with the current
hardcoded path "libusb-1.0" which should be taken from .pc files I
guess..?

For me the _hardcoded_ <libusb-1.0/libusb.h> is bad, because it does
not allow to provide path in LDFLAGS/CFLAGS or ".pc" file that would
work on all systems (i.e. when there is simply
/usr/local/include/libusb.h additional libusb-1.0 makes the problem).
The correct solution imo would be to use <libusb.h> and provide
/path/libusb-1.0 in LDFLAGS/CFLAGS, wouldnt it? Or we should
create/provide pkgconfig files for FreeBSD master? :-)

Best regards :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

------------------------------------------------------------------------------
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/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to