summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2015-01-25 22:13:48 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-01 23:31:04 +0100
commit0310aa70c234ef6c2edfd5e10cff98295c3e362c (patch)
tree153d7ba8c9f4a985d4a6c3174be0b0cc7613073d /package
parentb6847cac8767f308dce26b6a62365ce47e0a9197 (diff)
downloadbuildroot-0310aa70c234ef6c2edfd5e10cff98295c3e362c.tar.gz
buildroot-0310aa70c234ef6c2edfd5e10cff98295c3e362c.zip
package/libftdi: fix libftdi.pc
This patch fixes libftdi pkg-config module, so that packages linking against libftdi correctly have all needed CFLAGS and LIBS defined, especially when running a static build. Fixes: http://autobuild.buildroot.org/results/e90/e90b4d5ad79d99487f21c9d18581e8eba7034501/ Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch b/package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch
new file mode 100644
index 0000000000..ee47af6058
--- /dev/null
+++ b/package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch
@@ -0,0 +1,27 @@
+From d3d6ca63cb86727533d7d83c98e70002bb04f343 Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Wed, 21 Jan 2015 11:18:59 +0100
+Subject: [PATCH] libftdi.pc: requires libusb (fix static build)
+
+---
+ libftdi.pc.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libftdi.pc.in b/libftdi.pc.in
+index 2061b91..57f0a09 100644
+--- a/libftdi.pc.in
++++ b/libftdi.pc.in
+@@ -5,8 +5,8 @@ includedir=@includedir@
+
+ Name: libftdi
+ Description: Library to program and control the FTDI USB controller
+-Requires:
++Requires: libusb
+ Version: @VERSION@
+-Libs: -L${libdir} -lftdi -lusb
++Libs: -L${libdir} -lftdi
+ Cflags: -I${includedir}
+
+--
+2.1.0
+
OpenPOWER on IntegriCloud