[Buildroot] [git commit branch/2017.02.x] gdb: prevent installation of libbfd.so and libopcode.so

Peter Korsgaard peter at korsgaard.com
Sat Dec 30 23:04:06 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=346580d8fc303f7a4aa0559b81723128aae050eb
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.02.x

The gdb install target installs dynamic versions of libbfd and
libopcode, accidentally overwriting the binutils provided versions
(gdb itself links against the bundled static ones to avoid
version problems, so the dynamic ones are un-needed).

Prevent the installation by using the '--disable-install-libbfd'
configure option.

Signed-off-by: Peter Seiderer <ps.report at gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
(cherry picked from commit b54c7931952874a814e48df75093e13ad955604f)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/gdb/gdb.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 618111d..e52f42b 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -61,9 +61,11 @@ endif
 
 # When gdb sources are fetched from the binutils-gdb repository, they
 # also contain the binutils sources, but binutils shouldn't be built,
-# so we disable it.
+# so we disable it (additionally the option --disable-install-libbfd
+# prevents the un-wanted installation of libobcodes.so and libbfd.so).
 GDB_DISABLE_BINUTILS_CONF_OPTS = \
 	--disable-binutils \
+	--disable-install-libbfd \
 	--disable-ld \
 	--disable-gas
 


More information about the buildroot mailing list