2017-05-29 22:53:23 +02:00
|
|
|
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
|
2013-01-06 06:22:44 +01:00
|
|
|
|
|
|
|
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).
|
|
|
|
|
2014-11-11 12:47:44 +01:00
|
|
|
Based on the former patch by Thomas Petazzoni.
|
|
|
|
|
2016-06-17 16:48:29 +02:00
|
|
|
[Vincent: tweak patch for 0.166]
|
2019-10-20 12:11:45 +02:00
|
|
|
[Bernd: rebased patch for 0.177]
|
2016-06-17 16:48:29 +02:00
|
|
|
|
2013-01-06 06:22:44 +01:00
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2014-11-11 12:47:44 +01:00
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
2019-10-20 12:11:45 +02:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2017-05-29 22:53:23 +02:00
|
|
|
---
|
|
|
|
Makefile.am | 6 +++++-
|
|
|
|
configure.ac | 6 ++++++
|
|
|
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
2013-01-06 06:22:44 +01:00
|
|
|
|
2017-05-29 22:53:23 +02:00
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
|
|
index 2ff444e7bf1d..70443abb4fb6 100644
|
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
2020-09-30 01:33:13 +02:00
|
|
|
@@ -26,8 +26,12 @@ AM_MAKEFLAGS = --no-print-directory
|
|
|
|
|
2014-11-11 12:47:44 +01:00
|
|
|
pkginclude_HEADERS = version.h
|
2020-09-30 01:33:13 +02:00
|
|
|
|
2014-11-11 12:47:44 +01:00
|
|
|
+if ENABLE_PROGS
|
|
|
|
+PROGS_SUBDIR = src
|
|
|
|
+endif
|
|
|
|
+
|
2020-09-30 01:33:13 +02:00
|
|
|
SUBDIRS = config m4 lib libelf libcpu backends libebl libdwelf libdwfl libdw \
|
|
|
|
- libasm debuginfod src po doc tests
|
|
|
|
+ libasm debuginfod $(PROGS_SUBDIR) po doc tests
|
|
|
|
|
2014-11-11 12:47:44 +01:00
|
|
|
EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
|
2015-01-06 13:02:06 +01:00
|
|
|
COPYING COPYING-GPLV2 COPYING-LGPLV3
|
2017-05-29 22:53:23 +02:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index c2c1d90b2133..7b4c38381cca 100644
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2020-09-30 01:33:13 +02:00
|
|
|
@@ -390,6 +390,12 @@
|
|
|
|
[tests_use_rpath=$enableval], [tests_use_rpath=no])
|
|
|
|
AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
|
|
|
|
|
2017-05-29 22:53:23 +02:00
|
|
|
+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=
|
2020-09-30 01:33:13 +02:00
|
|
|
--
|
2017-05-29 22:53:23 +02:00
|
|
|
2.11.0
|
|
|
|
|