Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 2/3] Fix elf2flt build when LTO is enabled
@ 2015-09-05 16:33 Douglas RAILLARD
  2015-09-06 13:24 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Douglas RAILLARD @ 2015-09-05 16:33 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Douglas RAILLARD <public.douglas.raillard@gmail.com>
---
 package/elf2flt/elf2flt.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/elf2flt/elf2flt.mk b/package/elf2flt/elf2flt.mk
index 3fcada4..d028259 100644
--- a/package/elf2flt/elf2flt.mk
+++ b/package/elf2flt/elf2flt.mk
@@ -21,6 +21,12 @@ HOST_ELF2FLT_CONF_OPTS = \
 	--with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
 	--target=$(GNU_TARGET_NAME)
 
+
 HOST_ELF2FLT_CONF_ENV = LIBS=-lz
 
+ifeq ($(BR2_GCC_ENABLE_LTO),y)
+	HOST_ELF2FLT_CONF_ENV = LIBS="-lz -ldl"
+endif
+
+
 $(eval $(host-autotools-package))
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-20 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-05 16:33 [Buildroot] [PATCH 2/3] Fix elf2flt build when LTO is enabled Douglas RAILLARD
2015-09-06 13:24 ` Thomas Petazzoni
2015-09-06 15:48   ` [Buildroot] [PATCH v2 2/3] elf2flt: fix " Douglas RAILLARD
2015-09-06 20:51     ` Yann E. MORIN
2015-09-20 13:45     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox