board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / elfutils / 0002-disable-progs.patch
blobea6b934dfc8e653c4051736f32de34ddf9da67a9
1 Add a --{enable,disable}-progs configure option
3 Add a --{enable,disable}-progs configuration option to elfutils. This
4 allows to selectively disable the compilation of the elfutils programs
5 (in which case only the libraries are built and installed). This is
6 useful because the programs are often not needed, and also because
7 building the programs against uClibc causes several issues (lack of
8 obstack_printf() in uClibc for example).
10 Based on the former patch by Thomas Petazzoni.
12 [Vincent: tweak patch for 0.166]
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
17 diff -rup a/configure.ac b/configure.ac
18 --- a/configure.ac 2016-03-31 09:48:08.000000000 +0100
19 +++ b/configure.ac 2016-06-17 14:47:03.561704498 +0100
20 @@ -253,6 +253,12 @@ AC_SUBST([LIBEBL_SUBDIR])
21 AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
22 AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
24 +AC_ARG_ENABLE([progs],
25 + AS_HELP_STRING([--enable-progs], [enable progs]),
26 + enable_progs=$enableval,
27 + enable_progs=yes)
28 +AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes)
30 dnl zlib is mandatory.
31 save_LIBS="$LIBS"
32 LIBS=
33 diff -rup a/Makefile.am b/Makefile.am
34 --- a/Makefile.am 2016-01-12 12:49:19.000000000 +0000
35 +++ b/Makefile.am 2016-06-17 14:48:02.585861468 +0100
36 @@ -26,9 +26,13 @@ AM_MAKEFLAGS = --no-print-directory
38 pkginclude_HEADERS = version.h
40 +if ENABLE_PROGS
41 +PROGS_SUBDIR = src
42 +endif
44 # Add doc back when we have some real content.
45 SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
46 - backends src po tests
47 + backends $(PROGS_SUBDIR) po tests
49 EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
50 COPYING COPYING-GPLV2 COPYING-LGPLV3