[PATCH] Add patch to newlib for devctl.h to compile with C++

Joel Sherrill joel at rtems.org
Tue Dec 8 23:01:29 UTC 2020


Closes #4174.
---
 rtems/config/tools/rtems-gcc-7.5.0-newlib-7947581.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rtems/config/tools/rtems-gcc-7.5.0-newlib-7947581.cfg b/rtems/config/tools/rtems-gcc-7.5.0-newlib-7947581.cfg
index cf62d2f..b02ced3 100644
--- a/rtems/config/tools/rtems-gcc-7.5.0-newlib-7947581.cfg
+++ b/rtems/config/tools/rtems-gcc-7.5.0-newlib-7947581.cfg
@@ -23,6 +23,10 @@
 %source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
 %hash sha512 newlib-%{newlib_version}.tar.gz 3122fcced8c3c9f5e6c9103bc882958364f3bc7f1806843ff470ed70cd2b9c5c239b9a905c08341ee4d0988e26022fb5da7e565e8af984cd00724288416158d8
 
+# Patch for devctl.h C++ issue (#4174)
+%patch add newlib --rsb-file=newlib-devctl-fix.patch -p1 https://devel.rtems.org/raw-attachment/ticket/4174/0001-libc-include-newlib.h-Fix-C-compilation-issue.patch
+%hash sha512 newlib-devctl-fix.patch 28723fa2a8b263a40cf53a5812201464140e7c4f3a04132cb96f6f64d62c2ab5e70743f4d5ccb057829e9f317097b9fef21f1817e584902e1424f6feb43a64cf
+
 %define isl_version 0.16.1
 %hash sha512 isl-%{isl_version}.tar.bz2 c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b
 
-- 
1.8.3.1



More information about the devel mailing list