summaryrefslogtreecommitdiff
path: root/cross/arm-none-eabi-gcc/patches
diff options
context:
space:
mode:
authorryoon <ryoon>2016-10-19 12:48:25 +0000
committerryoon <ryoon>2016-10-19 12:48:25 +0000
commita92b9c8ab627268bb4cd8591595588e3aa692c1c (patch)
tree0ee872177d36c891b6e5c44585f16d7c143726e6 /cross/arm-none-eabi-gcc/patches
parent465c961e68afff3c111069874e5a2ae6ec402671 (diff)
downloadpkgsrc-a92b9c8ab627268bb4cd8591595588e3aa692c1c.tar.gz
Import cross-arm-none-eabi-gcc-6.2.0 as cross/arm-none-eabi-gcc.
GCC for bare metal ARM EABI environment with newlib.
Diffstat (limited to 'cross/arm-none-eabi-gcc/patches')
-rw-r--r--cross/arm-none-eabi-gcc/patches/patch-gcc_system.h14
-rw-r--r--cross/arm-none-eabi-gcc/patches/patch-libcc1_configure16
-rw-r--r--cross/arm-none-eabi-gcc/patches/patch-libcc1_connection.cc12
-rw-r--r--cross/arm-none-eabi-gcc/patches/patch-libiberty_Makefile.in37
4 files changed, 79 insertions, 0 deletions
diff --git a/cross/arm-none-eabi-gcc/patches/patch-gcc_system.h b/cross/arm-none-eabi-gcc/patches/patch-gcc_system.h
new file mode 100644
index 00000000000..59c2d6cd16a
--- /dev/null
+++ b/cross/arm-none-eabi-gcc/patches/patch-gcc_system.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-gcc_system.h,v 1.1 2016/10/19 12:48:26 ryoon Exp $
+
+--- gcc/system.h.orig 2015-01-05 12:33:28.000000000 +0000
++++ gcc/system.h
+@@ -44,6 +44,9 @@ along with GCC; see the file COPYING3.
+ #endif
+
+ #include <stdio.h>
++#ifdef __cplusplus
++# include <cstdio>
++#endif
+
+ /* Define a generic NULL if one hasn't already been defined. */
+ #ifndef NULL
diff --git a/cross/arm-none-eabi-gcc/patches/patch-libcc1_configure b/cross/arm-none-eabi-gcc/patches/patch-libcc1_configure
new file mode 100644
index 00000000000..ae18d0f0d2c
--- /dev/null
+++ b/cross/arm-none-eabi-gcc/patches/patch-libcc1_configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-libcc1_configure,v 1.1 2016/10/19 12:48:26 ryoon Exp $
+
+Disable multi-os install dir for libcc1
+
+--- libcc1/configure.orig 2014-11-21 16:49:17.000000000 +0000
++++ libcc1/configure
+@@ -14366,9 +14366,6 @@ fi
+
+
+ libsuffix=
+-if test "$GXX" = yes; then
+- libsuffix=`$CXX -print-multi-os-directory`
+-fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
diff --git a/cross/arm-none-eabi-gcc/patches/patch-libcc1_connection.cc b/cross/arm-none-eabi-gcc/patches/patch-libcc1_connection.cc
new file mode 100644
index 00000000000..458d6a6ff75
--- /dev/null
+++ b/cross/arm-none-eabi-gcc/patches/patch-libcc1_connection.cc
@@ -0,0 +1,12 @@
+$NetBSD: patch-libcc1_connection.cc,v 1.1 2016/10/19 12:48:26 ryoon Exp $
+
+--- libcc1/connection.cc.orig 2014-11-13 10:22:22.000000000 +0000
++++ libcc1/connection.cc
+@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.
+ #include <sys/types.h>
+ #include <string.h>
+ #include <errno.h>
++#include <sys/select.h>
+ #include "marshall.hh"
+ #include "connection.hh"
+ #include "rpc.hh"
diff --git a/cross/arm-none-eabi-gcc/patches/patch-libiberty_Makefile.in b/cross/arm-none-eabi-gcc/patches/patch-libiberty_Makefile.in
new file mode 100644
index 00000000000..bc2656d4bbd
--- /dev/null
+++ b/cross/arm-none-eabi-gcc/patches/patch-libiberty_Makefile.in
@@ -0,0 +1,37 @@
+$NetBSD: patch-libiberty_Makefile.in,v 1.1 2016/10/19 12:48:26 ryoon Exp $
+
+--- libiberty/Makefile.in.orig 2014-12-24 16:22:51.000000000 +0000
++++ libiberty/Makefile.in
+@@ -363,13 +363,12 @@ install-strip: install
+ # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
+ # default multilib, so we have to take CFLAGS into account as well,
+ # since it will be passed the multilib flags.
+-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
+ install_to_libdir: all
+ if test -n "${target_header_dir}"; then \
+- ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
+- $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n; \
+- ( cd $(DESTDIR)$(libdir)/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
+- mv -f $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB); \
++ ${mkinstalldirs} $(DESTDIR)$(libdir); \
++ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(TARGETLIB)n; \
++ ( cd $(DESTDIR)$(libdir) ; chmod 644 $(TARGETLIB)n ;$(RANLIB) $(TARGETLIB)n ); \
++ mv -f $(DESTDIR)$(libdir)/$(TARGETLIB)n $(DESTDIR)$(libdir)/$(TARGETLIB); \
+ case "${target_header_dir}" in \
+ /*) thd=${target_header_dir};; \
+ *) thd=${includedir}/${target_header_dir};; \
+@@ -382,10 +381,10 @@ install_to_libdir: all
+ @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
+
+ install_to_tooldir: all
+- ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
+- $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
+- ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
+- mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
++ ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib
++ $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)n
++ ( cd $(DESTDIR)$(tooldir)/lib ; chmod 644 $(TARGETLIB)n; $(RANLIB) $(TARGETLIB)n )
++ mv -f $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(TARGETLIB)
+ @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
+
+ # required-list was used when building a shared bfd/opcodes/libiberty