#!/bin/bash set -euo pipefail cp $PATCH_DIR/*.diff debian/patches/ patch --no-backup-if-mismatch -p1 <<'PATCH' --- a/debian/rules.patch +++ b/debian/rules.patch @@ -36,6 +36,7 @@ gcc-distro-specs \ gcc-driver-extra-langs \ gcc-hash-style-gnu \ + gcc-mips-expand-memcpy \ libstdc++-doclink \ libstdc++-man-3cxx \ libstdc++-test-installed \ --- a/debian/rules2 +++ b/debian/rules2 @@ -724,7 +724,7 @@ endif ifneq (,$(findstring mips-linux,$(DEB_TARGET_GNU_TYPE))) - CONFARGS += --with-arch-32=mips32r2 --with-fp-32=xx + CONFARGS += --with-arch-32=mips32 --with-fp-32=xx CONFARGS += --with-lxc1-sxc1=no ifeq ($(multilib),yes) ifeq ($(biarchn32)-$(biarch64),yes-yes) @@ -735,7 +735,7 @@ endif ifneq (,$(findstring mipsel-linux,$(DEB_TARGET_GNU_TYPE))) - CONFARGS += --with-arch-32=mips32r2 --with-fp-32=xx + CONFARGS += --with-arch-32=mips32 --with-fp-32=xx CONFARGS += --with-madd4=no CONFARGS += --with-lxc1-sxc1=no ifeq ($(multilib),yes) PATCH