mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
luajit: handles BR2_PREFER_STATIC_LIB
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
87c28ee58a
commit
5412b62d19
@ -16,6 +16,12 @@ ifneq ($(BR2_LARGEFILE),y)
|
|||||||
LUAJIT_NO_LARGEFILE = TARGET_LFSFLAGS=
|
LUAJIT_NO_LARGEFILE = TARGET_LFSFLAGS=
|
||||||
endif
|
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
|
# The luajit build procedure requires the host compiler to have the
|
||||||
# same bitness as the target compiler. Therefore, on a x86 build
|
# same bitness as the target compiler. Therefore, on a x86 build
|
||||||
# machine, we can't build luajit for x86_64, which is checked in
|
# 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_CFLAGS="$(HOST_CFLAGS)" \
|
||||||
HOST_LDFLAGS="$(HOST_LDFLAGS)" \
|
HOST_LDFLAGS="$(HOST_LDFLAGS)" \
|
||||||
$(LUAJIT_NO_LARGEFILE) \
|
$(LUAJIT_NO_LARGEFILE) \
|
||||||
BUILDMODE=dynamic \
|
BUILDMODE=$(LUAJIT_BUILDMODE) \
|
||||||
-C $(@D) amalg
|
-C $(@D) amalg
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user