aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2016-09-26 21:41:17 +0800
committerbrooks <brooks@FreeBSD.org>2016-09-26 21:41:17 +0800
commited485df5950921053e6cb3f85d55b773bdb903f3 (patch)
tree31fc2aa62510dd708c726fbc4a8917f55c962481 /devel
parent282ee5f5df3bf1103dac5c4c6b56b966c8a172ce (diff)
downloadfreebsd-ports-gnome-ed485df5950921053e6cb3f85d55b773bdb903f3.tar.gz
freebsd-ports-gnome-ed485df5950921053e6cb3f85d55b773bdb903f3.tar.zst
freebsd-ports-gnome-ed485df5950921053e6cb3f85d55b773bdb903f3.zip
Fix mips64-binutils ld to default to mips64 rather than mips32.
Discussed with: bapt
Diffstat (limited to 'devel')
-rw-r--r--devel/binutils/Makefile2
-rw-r--r--devel/binutils/files/patch-mips64.diff41
2 files changed, 42 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index ac8beffd6d6c..4c7dbeaf71af 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -3,7 +3,7 @@
PORTNAME= binutils
PORTVERSION= 2.27
-PORTREVISION= 3
+PORTREVISION= 4
PORTEPOCH?= 1
CATEGORIES?= devel
MASTER_SITES= SOURCEWARE/binutils/releases
diff --git a/devel/binutils/files/patch-mips64.diff b/devel/binutils/files/patch-mips64.diff
new file mode 100644
index 000000000000..18850b028b52
--- /dev/null
+++ b/devel/binutils/files/patch-mips64.diff
@@ -0,0 +1,41 @@
+--- bfd/config.bfd.orig 2015-07-17 20:05:04.921108109 +0000
++++ bfd/config.bfd 2015-07-17 20:42:54.567978553 +0000
+@@ -1084,15 +1084,15 @@
+ ;;
+ mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+- targ_defvec=mips_elf32_ntradfbsd_le_vec
+- targ_selvecs="mips_elf32_ntradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec"
++ targ_defvec=mips_elf64_tradfbsd_le_vec
++ targ_selvecs="mips_elf64_tradfbsd_le_vec mips_elf32_ntradfbsd_le_vec mips_elf32_ntradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf64_tradfbsd_be_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec"
+ ;;
+ mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
+ # FreeBSD vectors
+- targ_defvec=mips_elf32_ntradfbsd_be_vec
+- targ_selvecs="mips_elf32_ntradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec"
++ targ_defvec=mips_elf64_tradfbsd_be_vec
++ targ_selvecs="mips_elf64_tradfbsd_be_vec mips_elf32_ntradfbsd_be_vec mips_elf32_ntradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf64_tradfbsd_le_vec"
+ # Generic vectors
+ targ_selvecs="${targ_selvecs} mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
+ ;;
+--- ld/configure.tgt.orig 2015-07-17 20:52:58.728911150 +0000
++++ ld/configure.tgt 2015-07-17 21:03:29.559869219 +0000
+@@ -491,12 +491,12 @@
+ targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
+ targ_extra_libpath=$targ_extra_emuls ;;
+ mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
+- targ_emul=elf32ltsmipn32_fbsd
+- targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmip_fbsd elf32btsmip_fbsd elf32btsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
++ targ_emul=elf64ltsmip_fbsd
++ targ_extra_emuls="elf32ltsmip_fbsd elf32btsmip_fbsd elf32ltsmipn32_fbsd elf32btsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip"
+ targ_extra_libpath=$targ_extra_emuls ;;
+ mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
+- targ_emul=elf32btsmipn32_fbsd
+- targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip elf32ltsmip_fbsd elf32btsmip_fbsd elf32ltsmipn32_fbsd elf64ltsmip_fbsd elf64btsmip_fbsd"
++ targ_emul=elf64btsmip_fbsd
++ targ_extra_emuls="elf32btsmip_fbsd elf32ltsmip_fbsd elf32btsmipn32_fbsd elf32ltsmipn32_fbsd elf64btsmip_fbsd elf64ltsmip_fbsd elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32 elf64ltsmip elf64btsmip"
+ targ_extra_libpath=$targ_extra_emuls ;;
+ mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
+ targ_emul=elf32ltsmip_fbsd