mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
elf2flt: fix build when LTO is enabled
Signed-off-by: Douglas RAILLARD <public.douglas.raillard@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7d7c1be4fc
commit
dab6765150
@ -21,6 +21,12 @@ HOST_ELF2FLT_CONF_OPTS = \
|
|||||||
--with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
|
--with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
|
||||||
--target=$(GNU_TARGET_NAME)
|
--target=$(GNU_TARGET_NAME)
|
||||||
|
|
||||||
HOST_ELF2FLT_CONF_ENV = LIBS=-lz
|
HOST_ELF2FLT_LIBS = -lz
|
||||||
|
|
||||||
|
ifeq ($(BR2_GCC_ENABLE_LTO),y)
|
||||||
|
HOST_ELF2FLT_LIBS += -ldl
|
||||||
|
endif
|
||||||
|
|
||||||
|
HOST_ELF2FLT_CONF_ENV = LIBS="$(HOST_ELF2FLT_LIBS)"
|
||||||
|
|
||||||
$(eval $(host-autotools-package))
|
$(eval $(host-autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user