summaryrefslogtreecommitdiff
path: root/cross/cross-gcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'cross/cross-gcc/PKGBUILD')
-rw-r--r--cross/cross-gcc/PKGBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/cross/cross-gcc/PKGBUILD b/cross/cross-gcc/PKGBUILD
index f6d29de2c..0a1025c54 100644
--- a/cross/cross-gcc/PKGBUILD
+++ b/cross/cross-gcc/PKGBUILD
@@ -141,11 +141,13 @@ source=(#ftp://$_pkgname.gnu.org/pub/$_pkgname/releases/$_pkgname-${pkgver}/$_pk
ftp://$_pkgname.gnu.org/pub/$_pkgname/snapshots/${_snapshot}/$_pkgname-${_snapshot}.tar.bz2
$_pkgname-4.8-filename-output.patch
$_pkgname-4.8-lambda-ICE.patch
- $_pkgname-xtensa.patch)
+ $_pkgname-xtensa.patch
+ mips-kfreebsd-gnu.patch)
md5sums=('9d35549404a2326540fb88301ebd1977'
'40cb437805e2f7a006aa0d0c3098ab0f'
'6eb6e080dbf7bc6825f53a0aaa6c4ef9'
- '81372ee980289a9f6df01dad31c64a63')
+ '81372ee980289a9f6df01dad31c64a63'
+ '43282cddb2080b1180f7b76d3a8a832c')
if [ -n "${_snapshot}" ]; then
_basedir=$_pkgname-${_snapshot}
@@ -182,6 +184,10 @@ prepare() {
# open-ath9k-htc-firmware patch on xtensa-unknown-elf
[[ $_target == xtensa-unknown-elf ]] && patch -p1 -i ${srcdir}/$_pkgname-xtensa.patch
+ # mips patch on kfreebsd-gnu
+ [[ $_target == mips64el-unknown-kfreebsd-gnu ]] && \
+ patch -p1 -i ${srcdir}/mips-kfreebsd-gnu.patch
+
mkdir ${srcdir}/$_pkgname-build
}