From dbdec5aab93e6b29d1417dda2830c821febd5f68 Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Sun, 26 Feb 2017 11:11:32 -0800 Subject: [PATCH] gdb: configure with --with-build-sysroot, not --with-sysroot. When a cross-compiled gdb is built with --with-sysroot, it looks for shared libraries in the wrong place when installed to the target system. So use --with-build-sysroot instead. --- srcpkgs/gdb/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/gdb/template b/srcpkgs/gdb/template index efa36bdaaf4..bedc1df3bae 100644 --- a/srcpkgs/gdb/template +++ b/srcpkgs/gdb/template @@ -1,7 +1,7 @@ # Template file for 'gdb' pkgname=gdb version=7.12.1 -revision=1 +revision=2 patch_args="-Np1" build_style=gnu-configure pycompile_dirs="/usr/share/gdb" @@ -36,6 +36,9 @@ vopt_conflict gdbserver static post_extract() { sed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c } +pre_configure() { + configure_args="${configure_args/with-sysroot/with-build-sysroot}" +} pre_build() { export gl_cv_func_gettimeofday_clobber=no }