1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Always set the endian flag for the linker emulation for MIPS.

Fix a regression in r472011 where gcc would pass a linker emulation
without an endian flag if neither -EB nor -EL were provided on the gcc
command line.

Bump PORTREVISION.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D22004
This commit is contained in:
John Baldwin 2019-10-16 21:46:24 +00:00
parent d482db4fa2
commit 99ffe86600
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=514619
2 changed files with 10 additions and 5 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= gcc
PORTVERSION= 6.4.0
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= devel
MASTER_SITES= GCC/releases/gcc-${DISTVERSION}
PKGNAMEPREFIX?= powerpc64-

View File

@ -64,7 +64,7 @@ new file mode 100644
index 0000000..56a921e
--- /dev/null
+++ gcc/config/mips/freebsd.h
@@ -0,0 +1,320 @@
@@ -0,0 +1,325 @@
+/* Definitions for MIPS varients running FreeBSD with ELF format
+ Copyright (C) 2008 Free Software Foundation, Inc.
+ Continued by David O'Brien <obrien@freebsd.org>
@ -312,9 +312,14 @@ index 0000000..56a921e
+
+/* Always pass ISA to drivers */
+#undef DRIVER_SELF_SPECS
+#define DRIVER_SELF_SPECS \
+ MIPS_DEFAULT_ISA_LEVEL_SPEC, \
+ MIPS_ISA_LEVEL_SPEC, \
+#define DRIVER_SELF_SPECS \
+ MIPS_DEFAULT_ISA_LEVEL_SPEC, \
+ MIPS_ISA_LEVEL_SPEC, \
+ \
+ /* Make sure that an endian option is always present. This makes \
+ things like LINK_SPEC easier to write. */ \
+ "%{!EB:%{!EL:%(endian_spec)}}", \
+ \
+ BASE_DRIVER_SELF_SPECS
+
+#if 0