Skip to contentSkip to conversation

gdb: prevent installation of libbfd.so and libopcode.so

PATCH New Peter Seiderer 3 participants 4 messages Dec 8, 2017 – Dec 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gdb: prevent installation of libbfd.so and libopcode.so

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.

---
Changes v1 -> v2:
- enhance commit log (suggested by Thomas Petazzoni)
- use --disable-install-libbfd instead of --disable-shared

---
 package/gdb/gdb.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/gdb/gdb.mk +3 -1
index 7e86ba0c7e..0f3846687e 100644
@@ -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 (additional 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
 
Signature · 1 line
2.15.0
#1 lore raw

PATCH v2 1/1 gdb: prevent installation of libbfd.so and libopcode.so

Hello,

Quoted 8 lines · Peter Seiderer

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.

Quoted 8 lines

---
Changes v1 -> v2:
- enhance commit log (suggested by Thomas Petazzoni)
- use --disable-install-libbfd instead of --disable-shared

---
 package/gdb/gdb.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Thanks a lot for the much clearer explanation, now everything is clear. Patch applied, thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 gdb: prevent installation of libbfd.so and libopcode.so

In reply to Peter Seiderer
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer <[email protected]> writes:

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).

Quoted 8 lines

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

---
Changes v1 -> v2:
- enhance commit log (suggested by Thomas Petazzoni)
- use --disable-install-libbfd instead of --disable-shared

Committed to 2017.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH v2 1/1 gdb: prevent installation of libbfd.so and libopcode.so

In reply to Peter Seiderer
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer <[email protected]> writes:

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).

Quoted 8 lines

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

---
Changes v1 -> v2:
- enhance commit log (suggested by Thomas Petazzoni)
- use --disable-install-libbfd instead of --disable-shared

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard