summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Kehn <rdkehn@yahoo.com>2015-06-15 16:55:19 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-21 09:50:00 +0200
commit76e176a0752965410ab84598625cee48bd97d9cf (patch)
tree522dfed3c74c5c7d5861ca246b077eba251863cb
parent0a500e6af79c9c899f8839cbc00479d664e75478 (diff)
downloadbuildroot-76e176a0752965410ab84598625cee48bd97d9cf.tar.gz
buildroot-76e176a0752965410ab84598625cee48bd97d9cf.zip
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. Signed-off-by: Doug Kehn <rdkehn@yahoo.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/gdb/gdb.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 4b9a757154..338de209ff 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -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
OpenPOWER on IntegriCloud