Skip to contentSkip to conversation

package/gdb: gdb+expat build fix

PATCH New Doug Kehn 2 participants 2 messages Jun 15, 2015 – Jun 21, 2015

lore
Share & tools
lore

Doug Kehn

author
#0 lore raw

PATCH 1/1 package/gdb: gdb+expat build fix

Commit 23413b51b2308225584b65c2fcd800ca8f7c56af added --with-expat configure option and expat dependency when BR2_PACKAGE_EXPAT is configured. When cross-compiling, gdb configure fails because the host system libexpat is referenced.

Configuring gdb with

	--with-libexpat-prefix=$(STAGING_DIR)/usr

fixes the reference and allows gdb to build successfully.

Tested with arm-buildroot-linux-gnueabihf toolchain.

---
 package/gdb/gdb.mk | 1 +
 1 file changed, 1 insertion(+)
package/gdb/gdb.mk +1 -0
index 4b9a757..338de20 100644
@@ -101,6 +101,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_EXPAT),y)
 GDB_CONF_OPTS += --with-expat
+GDB_CONF_OPTS += --with-libexpat-prefix=$(STAGING_DIR)/usr
 GDB_DEPENDENCIES += expat
 else
 GDB_CONF_OPTS += --without-expat
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 package/gdb: gdb+expat build fix

Dear Doug Kehn,

Quoted 7 lines · Doug Kehn

Commit 23413b51b2308225584b65c2fcd800ca8f7c56af added --with-expat configure option and expat dependency when BR2_PACKAGE_EXPAT is configured. When cross-compiling, gdb configure fails because the host system libexpat is referenced.

Configuring gdb with

	--with-libexpat-prefix=$(STAGING_DIR)/usr
Quoted 8 lines

fixes the reference and allows gdb to build successfully.

Tested with arm-buildroot-linux-gnueabihf toolchain.

---
 package/gdb/gdb.mk | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Thomas

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