2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
13 PKG_MD5SUM
:=05b928f41fa5b482e49ca2c24762a0ae
14 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/gnu
/gdb
17 PKG_BUILD_DIR
:=$(TOOLCHAIN_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/host-build.mk
21 define Build
/Configure
22 (cd
$(PKG_BUILD_DIR
); \
23 gdb_cv_func_sigsetjmp
=yes \
24 $(PKG_BUILD_DIR
)/configure \
25 --prefix=$(STAGING_DIR
) \
26 --build
=$(GNU_HOST_NAME
) \
27 --host
=$(GNU_HOST_NAME
) \
28 --target
=$(REAL_GNU_TARGET_NAME
) \
30 --without-uiout
--disable-gdbmi \
31 --disable-tui
--disable-gdbtk
--without-x \
32 --without-included-gettext \
38 $(MAKE
) -C
$(PKG_BUILD_DIR
)
39 strip $(PKG_BUILD_DIR
)/gdb
/gdb
43 (cd
$(STAGING_DIR
)/bin
; \
44 install -c
$(PKG_BUILD_DIR
)/gdb
/gdb
$(TARGET_CROSS
)gdb
; \
45 ln
-fs
$(TARGET_CROSS
)gdb
$(GNU_TARGET_NAME
)-gdb
; \
50 rm -rf
$(PKG_BUILD_DIR
)
51 rm -f
$(STAGING_DIR
)/bin
/$(TARGET_CROSS
)gdb
52 rm -f
$(STAGING_DIR
)/bin
/$(GNU_TARGET_NAME
)-gdb
55 $(eval
$(call HostBuild
))