gdb: prevent installation of libbfd.so and libopcode.so
authorPeter Seiderer <ps.report@gmx.net>
Fri, 8 Dec 2017 21:29:52 +0000 (22:29 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 17 Dec 2017 09:08:13 +0000 (10:08 +0100)
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@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gdb/gdb.mk

index 7e86ba0c7e237eafb5c5bea1d4ec798d6ce34e1d..5ca464ad466c5bd6b64c25b017fbb721f93c7767 100644 (file)
@@ -55,9 +55,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