From 2970711de7516b171b9c214be388bad49177b842 Mon Sep 17 00:00:00 2001 From: Marcin Nowakowski Date: Thu, 18 Aug 2016 12:17:47 +0200 Subject: [PATCH] package/elfutils: set program-prefix to default ("eu-") Elfutils program names collide with binutils' binaries. By default applications provided by elfutils are prefixed with "eu-", but in Buildroot that setting is overridden by pkg-autotools. The option in pkg-autotools rules was added to avoid including a target triple in some packages as a prefix, so restore elfutils default behaviour by adding a "eu-" program-prefix. Signed-off-by: Marcin Nowakowski Reviewed-by: Arnout Vandecappelle (Essensium/Mind) [Thomas: add comment in the .mk file explaining why we have a custom program prefix, as suggested by Arnout.] Signed-off-by: Thomas Petazzoni --- package/elfutils/elfutils.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index b999d0f9cd..6af12236e1 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -14,7 +14,12 @@ ELFUTILS_DEPENDENCIES = zlib # We patch configure.ac ELFUTILS_AUTORECONF = YES -ELFUTILS_CONF_OPTS += --disable-werror + +# Pass a custom program prefix to avoid a naming conflict between +# elfutils binaries and binutils binaries. +ELFUTILS_CONF_OPTS += \ + --disable-werror \ + --program-prefix="eu-" # elfutils gets confused when lfs mode is forced, so don't ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) -- 2.30.2