luajit: fix host installation
authorRomain Naour <romain.naour@gmail.com>
Sun, 1 May 2016 21:22:08 +0000 (23:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 1 May 2016 21:29:56 +0000 (23:29 +0200)
commite05a5b8e342f94aae7d79fe648003dd1a65ebc41
tree51e2045992ba8b676960ed42285881e490ede1e5
parent3f4a88209a4eecfda4935aa86a03a09276712417
luajit: fix host installation

Packages installed for the host should have their prefix set to
$(HOST_DIR)/usr, and therefore not use DESTDIR at installation time.

Using PREFIX=/usr DESTDIR=$(HOST_DIR) is wrong, and leads for example to
luajit.pc containing prefix=/usr, which means pkg-config returns
incorrect results for host-luajit.

This patch fixes the luajit package to conform to this rule.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
[Thomas: rewrite commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/luajit/luajit.mk