Skip to content

Commit

Permalink
elfutils: enable host build
Browse files Browse the repository at this point in the history
frr 8.0 needs host libelf dev
add option for host build
tested on x86, ramips, kirkwood

Signed-off-by: Lucian Cristian <[email protected]>
[changed commit author's email]
Signed-off-by: Christian Lamparter <[email protected]>
  • Loading branch information
lucize authored and chunkeey committed Oct 31, 2021
1 parent 78be274 commit 8550086
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package/libs/elfutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include $(INCLUDE_DIR)/host-build.mk

define Package/elfutils/Default
SECTION:=libs
Expand Down Expand Up @@ -60,6 +61,12 @@ else
CONFIGURE_ARGS += --disable-nls
endif

HOST_CONFIGURE_ARGS += \
--disable-debuginfod \
--disable-libdebuginfod \
--without-lzma \
--without-zstd

CONFIGURE_ARGS += \
--program-prefix=eu- \
--disable-debuginfod \
Expand Down Expand Up @@ -97,6 +104,7 @@ define Package/libelf/install
endef

# these lines need to be ordered by dependency because of ABI versioning
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libelf))
$(eval $(call BuildPackage,libdw))
$(eval $(call BuildPackage,libasm))

0 comments on commit 8550086

Please sign in to comment.