summaryrefslogtreecommitdiffstats
path: root/package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-06-08 09:21:57 +0300
committerPeter Korsgaard <peter@korsgaard.com>2018-06-08 16:30:24 +0200
commitf0335b0cf78dee43df93b9ee17d86f1443990cca (patch)
tree3876d09e2d5154d97c2112ac3f733e7a40c298c4 /package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch
parenteca8704dcf4d026f7aea6f1819772d0c19517346 (diff)
downloadbuildroot-f0335b0cf78dee43df93b9ee17d86f1443990cca.tar.gz
buildroot-f0335b0cf78dee43df93b9ee17d86f1443990cca.zip
elfutils: bump to version 0.171
Drop the po/ disable patch; not needed anymore. Drop the __mempcpy compatibility patch; __mempcpy is not used anymore. Refresh the -Werror removal patch; still needed, unfortunately. Renumber the remaining patches. Add GPLv3 license file. Add license files hash. [Peter: drop security reference, was added post-release] Cc: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch')
-rw-r--r--package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch b/package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch
new file mode 100644
index 0000000000..3f80fe60df
--- /dev/null
+++ b/package/elfutils/0001-Add-a-enable-disable-progs-configure-option.patch
@@ -0,0 +1,62 @@
+From dfea82b761b2ea4708fbf9370a5467ae4be525ca Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Mon, 29 May 2017 23:03:48 +0300
+Subject: [PATCH] Add a --{enable,disable}-progs configure option
+
+Add a --{enable,disable}-progs configuration option to elfutils. This
+allows to selectively disable the compilation of the elfutils programs
+(in which case only the libraries are built and installed). This is
+useful because the programs are often not needed, and also because
+building the programs against uClibc causes several issues (lack of
+obstack_printf() in uClibc for example).
+
+Based on the former patch by Thomas Petazzoni.
+
+[Vincent: tweak patch for 0.166]
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
+---
+ Makefile.am | 6 +++++-
+ configure.ac | 6 ++++++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 2ff444e7bf1d..70443abb4fb6 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -26,9 +26,13 @@ AM_MAKEFLAGS = --no-print-directory
+
+ pkginclude_HEADERS = version.h
+
++if ENABLE_PROGS
++PROGS_SUBDIR = src
++endif
++
+ # Add doc back when we have some real content.
+ SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
+- backends src po tests
++ backends $(PROGS_SUBDIR) po tests
+
+ EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
+ COPYING COPYING-GPLV2 COPYING-LGPLV3
+diff --git a/configure.ac b/configure.ac
+index c2c1d90b2133..7b4c38381cca 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -259,6 +259,12 @@ AC_SUBST([LIBEBL_SUBDIR])
+ AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
+ AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
+
++AC_ARG_ENABLE([progs],
++ AS_HELP_STRING([--enable-progs], [enable progs]),
++ enable_progs=$enableval,
++ enable_progs=yes)
++AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
++
+ dnl zlib is mandatory.
+ save_LIBS="$LIBS"
+ LIBS=
+--
+2.11.0
+
OpenPOWER on IntegriCloud