libftdi Archives

Subject: libftdi-config patch

From: Lehmann Alexander <lehmanna@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 5 May 2010 08:14:57 +0200
Hello *,

I just learned that the configure script that comes with libftdi doesn't fully honour any given CFLAGS or CPPFLAGS. The problem arises from the fact that configure also creates the libftdi-config script which in turn doesn't output the corresponding flags correctly.
The following patch for fixes the problem:

<       if test "@includedir@" != "/usr/include" ; then
>       if test "@includedir@" != /usr/include ; then
<    echo $includes @CFLAGS@
>    echo $includes

Without this patch, libftdi even fails to compile on systems where the actual include directory differs from the installation include directory, e.g. on my system /sw/include holds the relevant includes from libusb etc. whereas installation of libftdi goes to /usr/local/...

Alexander Lehmann

libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
Current Thread