1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94
10 PKG_DESCR
:= programm debugger
11 PKG_SECTION
:= app
/debug
12 PKG_SITES
:= ${MASTER_SITE_GNU
:=gdb
/}
13 PKG_DEPENDS
:= libncurses zlib libexpat libthread-db
14 PKG_BUILDDEP
:= ncurses readline expat zlib
18 PKG_ARCH_DEPENDS
:= !cris
!m68k
!avr32
!nios2
!microblaze
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call PKG_template
,GDB
,gdb
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 TARGET_CFLAGS
+= ${TARGET_CPPFLAGS} -fPIC
25 CONFIGURE_ARGS
+= --without-uiout \
33 --without-included-gettext \
34 --without-auto-load-safe-path \
35 --disable-install-libiberty \
36 --disable-install-libbfd \
40 XAKE_FLAGS
+= LDFLAGS
='${TARGET_LDFLAGS}'
41 # disable honour cflags stuff
42 XAKE_FLAGS
+= GCC_HONOUR_COPTS
:=s
45 ${INSTALL_DIR} ${IDIR_GDB}/usr
/bin
46 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/gdb \
48 # shipped libbfd conflicts with system wide one
49 rm -f
${WRKINST}/usr
/lib
/libbfd
*
51 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk