package/elfutils: set program-prefix to default ("eu-")
PATCH 1/1 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.
--- package/elfutils/elfutils.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/elfutils/elfutils.mk +3 -1
@@ -14,7 +14,9 @@ ELFUTILS_DEPENDENCIES = zlib # We patch configure.ac ELFUTILS_AUTORECONF = YES -ELFUTILS_CONF_OPTS += --disable-werror +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))
Signature · 1 line
2.7.4
PATCH 1/1 package/elfutils: set program-prefix to default ("eu-")
Quoted 8 lines · Marcin Nowakowski
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 <[email protected]>
I didn't test, but looks sane to me.
Probably for -next though.
A comment in the .mk file would have been nice, but myself, I generally consult
the log when in doubt so it's OK for me.
Regards,
Arnout
Quoted 20 lines
--- package/elfutils/elfutils.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)package/elfutils/elfutils.mk +3
-1@@ -14,7 +14,9 @@ ELFUTILS_DEPENDENCIES = zlib # We patch configure.ac ELFUTILS_AUTORECONF = YES -ELFUTILS_CONF_OPTS += --disable-werror +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))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 package/elfutils: set program-prefix to default ("eu-")
In reply to Marcin NowakowskiHello,
Quoted 11 lines · Marcin Nowakowski
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 <[email protected]>--- package/elfutils/elfutils.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
As suggested by Arnout, I've added a comment in the .mk file that explains why we're passing a custom program prefix. I've then applied your patch to the next branch. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com