From 1075fbd34597adde110492a6a8f01003dbf17b9d Mon Sep 17 00:00:00 2001 From: Piraty Date: Mon, 12 Apr 2021 22:12:45 +0200 Subject: [PATCH] gdb: add multiarch build option --- srcpkgs/gdb/template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index 64787a9ade34..7fc3d0288efe 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -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)" @@ -30,13 +31,13 @@ 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