libffi: fix libffi.pc file 1989/head
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 18 Nov 2015 21:43:59 +0000 (22:43 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 18 Nov 2015 21:52:52 +0000 (22:52 +0100)
The include dir pointed to staging_dir/target-mips_34kc+dsp_musl-1.1.11
/usr/lib/libffi-3.0.13/include which does not exists, this made glib2
fail to compile. The header files are copied to /usr/include so define
it in the libffi.pc file.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
libs/libffi/patches/001-fix-includedir-pkg.patch [new file with mode: 0644]

diff --git a/libs/libffi/patches/001-fix-includedir-pkg.patch b/libs/libffi/patches/001-fix-includedir-pkg.patch
new file mode 100644 (file)
index 0000000..d82ec5f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libffi.pc.in
++++ b/libffi.pc.in
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includedir=${prefix}/include
+ Name: @PACKAGE_NAME@
+ Description: Library supporting Foreign Function Interfaces