summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-04-05 21:11:00 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-04-05 21:38:48 +0200
commitdc2a3048ebed15d6555fbfa601dee408038610e0 (patch)
treebe6512ab2b4c20f230fd1d2a15571011817a62d9 /package
parent0c8244251e730c9873776f2d8d86d23d5a12af6c (diff)
downloadbuildroot-novena-dc2a3048ebed15d6555fbfa601dee408038610e0.tar.gz
buildroot-novena-dc2a3048ebed15d6555fbfa601dee408038610e0.zip
haserl: fix lua support build on hosts without lua development package
Abuse lua2c_LDFLAGS to pass the correct host cflags/ldflags when lua2c is built for the host. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/haserl/haserl.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/haserl/haserl.mk b/package/haserl/haserl.mk
index c8a88add8..dfe4cf0bf 100644
--- a/package/haserl/haserl.mk
+++ b/package/haserl/haserl.mk
@@ -10,7 +10,9 @@ HASERL_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/ha
ifeq ($(BR2_PACKAGE_HASERL_WITH_LUA),y)
HASERL_CONF_OPT += --with-lua=$(STAGING_DIR) \
--with-lua-headers=$(STAGING_DIR)
- HASERL_DEPENDENCIES += lua
+ HASERL_DEPENDENCIES += lua host-lua
+ # lua2c is built for host, so needs to find host libs/headers
+ HASERL_MAKE_OPT += lua2c_LDFLAGS='$(HOST_CFLAGS) $(HOST_LDFLAGS)'
endif
define HASERL_REMOVE_EXAMPLES