|
|
|
@ -8,7 +8,7 @@ $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
|
|
|
|
|
$(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.xz
|
|
|
|
|
$(PKG)_URL := https://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
|
|
|
|
|
$(PKG)_URL_2 := https://ftpmirror.gnu.org/$(PKG)/$($(PKG)_FILE)
|
|
|
|
|
$(PKG)_DEPS := cc dlfcn-win32 expat libiconv readline zlib
|
|
|
|
|
$(PKG)_DEPS := cc dlfcn-win32 expat libiconv mman-win32 readline zlib
|
|
|
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
|
|
|
|
$(WGET) -q -O- 'https://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \
|
|
|
|
@ -18,16 +18,16 @@ define $(PKG)_UPDATE
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
|
cd '$(1)' && ./configure \
|
|
|
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
|
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
|
|
|
--with-system-readline \
|
|
|
|
|
--disable-gdbtk \
|
|
|
|
|
--disable-tui \
|
|
|
|
|
host_configargs="LIBS=\"`$(TARGET)-pkg-config --libs dlfcn`\"" \
|
|
|
|
|
host_configargs="LIBS=\"`$(TARGET)-pkg-config --libs dlfcn` -lmman\"" \
|
|
|
|
|
CONFIG_SHELL=$(SHELL)
|
|
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
|
|
|
|
|
|
|
|
|
# executables are always static and we don't the rest
|
|
|
|
|
$(INSTALL) -m755 '$(1)/gdb/gdb.exe' '$(PREFIX)/$(TARGET)/bin/'
|
|
|
|
|
$(INSTALL) -m755 '$(1)/gdb/gdbserver/gdbserver.exe' '$(PREFIX)/$(TARGET)/bin/'
|
|
|
|
|
# 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/'
|
|
|
|
|
endef
|
|
|
|
|