summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-08-03 21:44:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-08-03 21:45:14 +0200
commit3f5db15584f7d1d39e29cf71f58530de6ed60dcd (patch)
tree40b4037e86fa55cbc68d4e0abdcc542c574b5fe9
parent1e378a7ca868e8c75099c3210b18108d12a1708f (diff)
gdb: fix compile, --enable-static is required
-rw-r--r--package/gdb-microblaze/Makefile10
-rw-r--r--package/gdb/Makefile4
2 files changed, 5 insertions, 9 deletions
diff --git a/package/gdb-microblaze/Makefile b/package/gdb-microblaze/Makefile
index a25278330..cf1aff40d 100644
--- a/package/gdb-microblaze/Makefile
+++ b/package/gdb-microblaze/Makefile
@@ -20,8 +20,8 @@ include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
-CONFIGURE_ARGS+= --without-uiout \
+CONFIGURE_ARGS+= --enable-static \
+ --without-uiout \
--disable-tui \
--disable-gdbtk \
--disable-gdbserver \
@@ -36,15 +36,9 @@ CONFIGURE_ARGS+= --without-uiout \
--with-curses \
--enable-gdbmi
-XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
-# disable honour cflags stuff
-XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
-
gdb-install:
${INSTALL_DIR} ${IDIR_GDB}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
${IDIR_GDB}/usr/bin/
- # shipped libbfd conflicts with system wide one
- rm -f ${WRKINST}/usr/lib/libbfd*
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index f14045daf..321c8e72e 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -20,7 +20,9 @@ include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-CONFIGURE_ARGS+= --without-uiout \
+# --enable-static is required to build libbfd.a
+CONFIGURE_ARGS+= --enable-static \
+ --without-uiout \
--disable-tui \
--disable-gdbtk \
--disable-gdbserver \