From: Francois Perrad Date: Sat, 1 Mar 2014 17:23:04 +0000 (+0100) Subject: luajit: handles BR2_PREFER_STATIC_LIB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5412b62d196445b3ae842d993571ef7799adbd7a;p=buildroot.git luajit: handles BR2_PREFER_STATIC_LIB Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk index 32596a1e2c..859425ab52 100644 --- a/package/luajit/luajit.mk +++ b/package/luajit/luajit.mk @@ -16,6 +16,12 @@ ifneq ($(BR2_LARGEFILE),y) LUAJIT_NO_LARGEFILE = TARGET_LFSFLAGS= endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +LUAJIT_BUILDMODE = static +else +LUAJIT_BUILDMODE = dynamic +endif + # The luajit build procedure requires the host compiler to have the # same bitness as the target compiler. Therefore, on a x86 build # machine, we can't build luajit for x86_64, which is checked in @@ -44,7 +50,7 @@ define LUAJIT_BUILD_CMDS HOST_CFLAGS="$(HOST_CFLAGS)" \ HOST_LDFLAGS="$(HOST_LDFLAGS)" \ $(LUAJIT_NO_LARGEFILE) \ - BUILDMODE=dynamic \ + BUILDMODE=$(LUAJIT_BUILDMODE) \ -C $(@D) amalg endef