2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2010-05-12 18:22:38 +01:00
|
|
|
|
|
|
|
PKG := gdb
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.gnu.org/software/gdb/
|
2020-05-24 09:29:38 +01:00
|
|
|
$(PKG)_VERSION := 9.2
|
|
|
|
$(PKG)_CHECKSUM := 360cd7ae79b776988e89d8f9a01c985d0b1fa21c767a4295e5f88cb49175c555
|
2010-05-12 18:22:38 +01:00
|
|
|
$(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
|
2014-08-04 21:06:33 +01:00
|
|
|
$(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.xz
|
2017-03-04 10:33:47 +00:00
|
|
|
$(PKG)_URL := https://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL_2 := https://ftpmirror.gnu.org/$(PKG)/$($(PKG)_FILE)
|
2019-06-28 12:42:41 +01:00
|
|
|
$(PKG)_DEPS := cc dlfcn-win32 expat libiconv mman-win32 readline zlib
|
2010-05-12 18:22:38 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \
|
2010-05-12 18:22:38 +01:00
|
|
|
$(SED) -n 's,.*<a href="gdb-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
2013-05-22 10:33:04 +01:00
|
|
|
$(SORT) -V | \
|
|
|
|
tail -1
|
2010-05-12 18:22:38 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2019-06-28 12:42:41 +01:00
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
2014-10-12 18:00:22 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
|
|
--with-system-readline \
|
2018-03-18 08:55:34 +00:00
|
|
|
--disable-gdbtk \
|
|
|
|
--disable-tui \
|
2019-06-28 12:42:41 +01:00
|
|
|
host_configargs="LIBS=\"`$(TARGET)-pkg-config --libs dlfcn` -lmman\"" \
|
2020-05-15 12:47:03 +01:00
|
|
|
CONFIG_SHELL=$(SHELL) \
|
|
|
|
LDFLAGS='-Wl,--allow-multiple-definition'
|
2020-06-05 10:57:50 +01:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' MAKEINFO='/usr/bin/env true'
|
2014-04-06 14:18:15 +01:00
|
|
|
|
2019-06-28 12:42:41 +01:00
|
|
|
# executables are always static and we don't want the rest
|
|
|
|
$(INSTALL) -m755 '$(BUILD_DIR)/gdb/gdb.exe' '$(PREFIX)/$(TARGET)/bin/'
|
|
|
|
$(INSTALL) -m755 '$(BUILD_DIR)/gdb/gdbserver/gdbserver.exe' '$(PREFIX)/$(TARGET)/bin/'
|
2015-09-06 15:58:02 +01:00
|
|
|
endef
|