gdb: add multiarch build option
This commit is contained in:
parent
756ae3019f
commit
2269ad8f4e
1 changed files with 8 additions and 9 deletions
|
@ -1,11 +1,12 @@
|
|||
# Template file for 'gdb'
|
||||
pkgname=gdb
|
||||
version=10.1
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
pycompile_dirs="/usr/share/gdb/python"
|
||||
configure_args="--disable-werror --disable-nls --with-system-readline
|
||||
--with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib $(vopt_enable gdbserver)
|
||||
--with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib
|
||||
$(vopt_enable gdbserver) $(vopt_if multiarch --enable-targets=all)
|
||||
$(vopt_if static 'CFLAGS=-static CXXFLAGS=-static LDFLAGS=-static')
|
||||
$(vopt_if python --with-python=/usr/bin/python3)
|
||||
$(vopt_with debuginfod)"
|
||||
|
@ -27,16 +28,14 @@ if [ "${CROSS_BUILD}" ]; then
|
|||
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
CXXFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
fi
|
||||
CFLAGS+=" -fcommon"
|
||||
CXXFLAGS+=" -fcommon"
|
||||
# Package build options
|
||||
build_options="gdbserver static python debuginfod"
|
||||
desc_option_gdbserver="Enable support for building GDB server"
|
||||
|
||||
build_options="gdbserver multiarch static python debuginfod"
|
||||
desc_option_debuginfod="Enable support for libdebuginfod"
|
||||
# Enable gdbserver if !static.
|
||||
desc_option_multiarch="Enable support for all architectures"
|
||||
desc_option_gdbserver="Enable support for building GDB server"
|
||||
build_options_default="gdbserver python debuginfod"
|
||||
# Both options cannot be enabled at the same time
|
||||
vopt_conflict gdbserver static
|
||||
vopt_conflict debuginfod static
|
||||
|
||||
post_extract() {
|
||||
vsed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c
|
||||
|
|
Loading…
Reference in a new issue