From b7c0b8c8ee13bf4ae0736ddc1abc4f5a86d2a3ba Mon Sep 17 00:00:00 2001
From: Martin Roth <martinr@coreboot.org>
Date: Mon, 27 Aug 2018 07:05:59 -0600
Subject: util/crossgcc: Add GCC 8.1 patch for missing backslash

When building the toolchain under BSDs, this missing backslash is
needed.

Change-Id: I40b0adaa73b241713493fd74f24c93f85e7aabbe
Signed-off-by: Martin Roth <martinr@coreboot.org>
Reviewed-on: https://review.coreboot.org/28362
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 util/crossgcc/patches/gcc-8.1.0_bsd.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 util/crossgcc/patches/gcc-8.1.0_bsd.patch

(limited to 'util/crossgcc')

diff --git a/util/crossgcc/patches/gcc-8.1.0_bsd.patch b/util/crossgcc/patches/gcc-8.1.0_bsd.patch
new file mode 100644
index 0000000000..75b0b65772
--- /dev/null
+++ b/util/crossgcc/patches/gcc-8.1.0_bsd.patch
@@ -0,0 +1,12 @@
+diff -Naur gcc-8.1.0/gcc/ada/link.c gcc-8.1.0_/gcc/ada/link.c
+--- gcc-8.1.0/gcc/ada/link.c	2018-01-11 01:55:25.000000000 -0700
++++ gcc-8.1.0_/gcc/ada/link.c	2018-08-25 20:47:29.274166706 -0600
+@@ -104,7 +104,7 @@
+ const char *__gnat_default_libgcc_subdir = "lib";
+ 
+ #elif defined (__FreeBSD__) || defined (__DragonFly__) \
+-   || defined (__NetBSD__) || defined (__OpenBSD__)
++   || defined (__NetBSD__) || defined (__OpenBSD__) \
+    || defined (__QNX__)
+ const char *__gnat_object_file_option = "-Wl,@";
+ const char *__gnat_run_path_option = "-Wl,-rpath,";
-- 
cgit v1.2.3