package/sispmctl: fix static linking
authorRomain Naour <romain.naour@openwide.fr>
Mon, 25 Aug 2014 23:12:33 +0000 (01:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 5 Oct 2014 21:35:15 +0000 (23:35 +0200)
commit441ff982fdc8907c7f1bd8ba24bdf50df0c53293
treebfe37ec404915690be32d8d316b9fdac180d5b4c
parent1218ab64d09c715ce985d2c957e24ed4ad1ca5f0
package/sispmctl: fix static linking

The static linking doesn't work with libusb-compat when using
libusb-config. Also the CFLAGS initialization with libusb-config
--cflags is comented out.

Based on libftdi's patch, this commit adds the support for pkg-config
to link sispmctl correctly.

This allow to add the correct include directories to CFLAGS (Add
-I$(STAGING_DIR)/usr/include and
-I$(STAGING_DIR)/usr/include/libusb-1.0) and also add the required
libraries during static linking (-lusb -lusb-1.0 and -pthread).

Since configure.ac is modified, the configure script needs to be
regenerated with autoreconf.

Fixes:
http://autobuild.buildroot.net/results/647/6473088e751d3ab3a5227e9d7876966934e66378/build-end.log

Cc: Phil Eichinger <phil.eichinger@gmail.com>
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sispmctl/sispmctl-01-configure-add-pkg-config-support.patch [new file with mode: 0644]
package/sispmctl/sispmctl.mk