-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild-gdb.sh
executable file
·36 lines (32 loc) · 1.01 KB
/
build-gdb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash -e
#
# Copyright 2015-2016 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_NAME=gdb
PKG_VERSION=10.1
PKG_SOURCE="${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_SOURCE_URL="http://ftpmirror.gnu.org/gdb/$PKG_SOURCE"
PKG_SOURCE_MD5SUM=1822a7dd45e7813f4408407eec1a6af1
PKG_DEPENDS='libiconv zlib ncurses xz'
PKG_PLATFORM=linux
. "$PWD/env.sh"
# it's possible that binutils was installed first with include/bfd.h having no
# definition of `struct bfd_build_id`, yet the bfd library bundled with gdb has
# it but the build system will still use the one installed by bintuils while
# compiling py-objfile.c of python binding support.
#
# Remove reference to custom -I$INSTALL_PREFIX
EXTRA_CFLAGS=()
EXTRA_CPPFLAGS=()
configure_pre() {
# config.cache under readline/ directory was not removed by make distclean
#
# or use --cache-file=/dev/null
find "$PKG_BUILD_DIR" -name 'config.cache' | xargs rm -vf
}
CONFIGURE_ARGS+=(
--with-python
)