Skip to contentSkip to conversation

gdb: Disable hard-coding of library rpaths

PATCH Superseded Phil Blundell 2 participants 2 messages Apr 25, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb: Disable hard-coding of library rpaths

GDB's configury has a tendency to hard-code the path where it found libexpat using "-Wl,--rpath". This is undesirable and leads to QA warnings.

Fortunately, the helpful GDB maintainers have provided a "--disable-rpath" switch to turn this behaviour off. Let's use it and profit.

---
 meta/recipes-devtools/gdb/gdb-common.inc |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gdb/gdb-common.inc +1 -0
index 9eb6b60..0e542d8 100644
@@ -42,6 +42,7 @@ EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
                 --with-curses --disable-multilib --with-system-readline --disable-sim \
                 ${GDBPROPREFIX} ${EXPAT} \
                 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
+		--disable-rpath \
                "
 
 GDBPROPREFIX = "--program-prefix=''"
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 16 lines · Phil Blundell

GDB's configury has a tendency to hard-code the path where it found libexpat using "-Wl,--rpath". This is undesirable and leads to QA warnings.

Fortunately, the helpful GDB maintainers have provided a "--disable-rpath" switch to turn this behaviour off. Let's use it and profit.

---
 meta/recipes-devtools/gdb/gdb-common.inc |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gdb/gdb-common.inc +0 -0
index 9eb6b60..0e542d8 100644

meta/recipes-devtools/gdb/gdb-common.inc EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ · line 45

Quoted 4 lines
meta/recipes-devtools/gdb/gdb-common.inc +1 -0
@@ -42,6 +42,7 @@ EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
                 --with-curses --disable-multilib --with-system-readline --disable-sim \
                 ${GDBPROPREFIX} ${EXPAT} \
                 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
+		--disable-rpath \

Please don't mix tabs and spaces for indentation.

Quoted 13 lines
meta/recipes-devtools/gdb/gdb-common.inc +0 -0
                "
 
 GDBPROPREFIX = "--program-prefix=''"
Signature · 9 lines
1.7.10.4




_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]