summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/elftoolchain/files/elftoolchain-0.7.1-fno-common.patch')
-rw-r--r--sys-devel/elftoolchain/files/elftoolchain-0.7.1-fno-common.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys-devel/elftoolchain/files/elftoolchain-0.7.1-fno-common.patch b/sys-devel/elftoolchain/files/elftoolchain-0.7.1-fno-common.patch
new file mode 100644
index 000000000000..d03bff2d4af3
--- /dev/null
+++ b/sys-devel/elftoolchain/files/elftoolchain-0.7.1-fno-common.patch
@@ -0,0 +1,34 @@
+Author: Dimitry Andric <dimitry@andric.com>
+Taken from: https://sourceforge.net/p/elftoolchain/code/3879/
+--- a/ld/amd64.h
++++ b/ld/amd64.h
+@@ -26,6 +26,6 @@
+ * $Id$
+ */
+
+-char *amd64_script;
++extern char *amd64_script;
+
+ void amd64_register(struct ld *);
+--- a/ld/i386.h
++++ b/ld/i386.h
+@@ -26,6 +26,6 @@
+ * $Id$
+ */
+
+-char *i386_script;
++extern char *i386_script;
+
+ void i386_register(struct ld *);
+--- a/ld/mips.h
++++ b/ld/mips.h
+@@ -23,7 +23,7 @@
+ * SUCH DAMAGE.
+ */
+
+-char *littlemips_script;
+-char *bigmips_script;
++extern char *littlemips_script;
++extern char *bigmips_script;
+
+ void mips_register(struct ld *);