mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
gdb: unbreak aarch64-musl
This commit is contained in:
parent
47504ee648
commit
c92484716f
1 changed files with 2 additions and 4 deletions
|
@ -18,10 +18,6 @@ homepage="https://www.gnu.org/software/gdb/"
|
||||||
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=97dcc3169bd430270fc29adb65145846a58c1b55cdbb73382a4a89307bdad03c
|
checksum=97dcc3169bd430270fc29adb65145846a58c1b55cdbb73382a4a89307bdad03c
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
aarch64*) broken="/builddir/gdb-8.1.1/gdb/gdbserver/../common/common-utils.c:419: undefined reference to rpl_stat" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ "${CROSS_BUILD}" ]; then
|
if [ "${CROSS_BUILD}" ]; then
|
||||||
# Make python2.7 detection work in cross builds
|
# Make python2.7 detection work in cross builds
|
||||||
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python3.6m"
|
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python3.6m"
|
||||||
|
@ -37,6 +33,8 @@ vopt_conflict gdbserver static
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c
|
sed -i 's,sgidefs.h,asm/sgidefs.h,' gdb/mips-linux-nat.c
|
||||||
|
# fixes aarch64-musl cross-build
|
||||||
|
sed -i -e "s/@REPLACE_STAT@/0/" gdb/gnulib/import/sys_stat.in.h
|
||||||
}
|
}
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
configure_args="${configure_args/with-sysroot/with-build-sysroot}"
|
configure_args="${configure_args/with-sysroot/with-build-sysroot}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue