moarvm: use pkgconfig to find libraries and headers
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 23 Nov 2016 14:39:10 +0000 (14:39 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 25 Nov 2016 21:41:58 +0000 (22:41 +0100)
commit40cbdf6de070db116e44a52b4a232d24ce850186
tree106a238b64fc40033f049dbd0a6c2f5f247e23e9
parent23b949fdb0f7a4d2582929defa8c17ff5b1a5d1a
moarvm: use pkgconfig to find libraries and headers

MoarVM's Configure.pl script uses pkgconfig to find libraries and
headers, but it uses the one installed in the host machine which is
wrong and can lead to errors of unsafe include paths.

Instead, make it depend on the host-pkgconf package and specify the path
to our pkgconfig binary by using the --pkgconfig configure option.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/moarvm/moarvm.mk