Date: Thursday, February 10, 2022 @ 18:41:03 Author: freswa Revision: 436887
incorporate changes proposed by alex19EP and Toolybird * move libiberty back from gcc to binutils * build BFD and opcodes libraries as shared objects again * remove gdbserver due to our separate gdb package * remove unused libdecnumber (used by GDB to manipulate decimal float point numbers) and readline (for interactive gdb use) * add --disable-sim since simulators would be used by gdb only * improve check() to run without errors and thus remove `|| true` * remove `make configure-host` (host environment check for deps) Modified: binutils/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-10 18:24:42 UTC (rev 436886) +++ PKGBUILD 2022-02-10 18:41:03 UTC (rev 436887) @@ -11,8 +11,9 @@ url='https://www.gnu.org/software/binutils/' license=(GPL) groups=(base-devel) -depends=(glibc zlib elfutils) -makedepends=(elfutils git) +depends=(glibc zlib libelf) +checkdepends=(dejagnu debuginfod bc) +optdepends=('debuginfod: for debuginfod server/client functionality') conflicts=(binutils-multilib) replaces=(binutils-multilib) options=(staticlibs !distcc !ccache) @@ -46,19 +47,24 @@ --enable-cet \ --enable-deterministic-archives \ --enable-gold \ + --enable-install-libiberty \ --enable-ld=default \ --enable-lto \ --enable-plugins \ --enable-relro \ + --enable-shared \ --enable-targets=x86_64-pep \ --enable-threads \ --disable-gdb \ + --disable-gdbserver \ + --disable-libdecnumber \ + --disable-readline \ + --disable-sim \ --disable-werror \ --with-debuginfod \ --with-pic \ --with-system-zlib - make -O configure-host make -O tooldir=/usr } @@ -65,9 +71,18 @@ check() { cd binutils-build - # unset LDFLAGS as testsuite makes assumptions about which ones are active - # ignore failures in gold testsuite... - make -O -k LDFLAGS="" check || true + # current testsuite failure in debuginfod (objdump) + # https://sourceware.org/bugzilla/show_bug.cgi?id=28029 + sed -i '/test_fetch_debuglink $OBJDUMP/d' \ + $srcdir/binutils-gdb/binutils/testsuite/binutils-all/debuginfod.exp + # Use minimal flags for testsuite + # ld testsuite uses CFLAGS_FOR_TARGET and requires -g + # gold testsuite requires CXXFLAGS/CFLAGS with default PIE/PIC disabled + make -O CFLAGS_FOR_TARGET="-O2 -g" \ + CXXFLAGS="-O2 -no-pie -fno-PIC" \ + CFLAGS="-O2 -no-pie" \ + LDFLAGS="" \ + check } package() {
