summaryrefslogtreecommitdiff
path: root/packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-09-26 07:02:01 (GMT)
committerAlexey Neyman <stilor@att.net>2019-10-02 04:22:22 (GMT)
commit931e2daf6e1608f3f98b6e6c4b815e53135045be (patch)
treee0b0a6812888a57f92736ae9c3f45c9501f1536e /packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch
parentb4f317a4a5a1a2f5a2bd9da60ecc1e303c18de18 (diff)
Add gettext 0.20.1
Two patches from 0.18.8.1 were dropped: - one changing the declaration of environ is no longer needed, the corresponding files no longer have this declaration - one with Woe32 fixes for -O0 may need to be re-added but only after I find what configuration breaks without it; gettext sources overwent a massive restructuring so this patch should not be applied without testing. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch')
-rw-r--r--packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch b/packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch
new file mode 100644
index 0000000..5e63290
--- /dev/null
+++ b/packages/gettext/0.20.1/0000-Fix-linker-error-redefinition-of-vasprintf.patch
@@ -0,0 +1,26 @@
+From a76649dae62768d0af7017b3fc0ca5f891588c78 Mon Sep 17 00:00:00 2001
+From: Andoni Morales Alastruey <ylatuya@gmail.com>
+Date: Wed, 29 Feb 2012 10:44:43 +0100
+Subject: [PATCH] Fix linker error: redefinition of vasprintf
+
+This might not be the best patch, but it works for us
+The link error was:
+.libs/autosprintf.o:autosprintf.cc:(.text$vasprintf[_vasprintf]+0x0): multiple definition of `_vasprintf'
+.libs/lib-asprintf.o:lib-asprintf.c:(.text+0x4621): first defined here
+---
+ gettext-runtime/libasprintf/autosprintf.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/gettext-runtime/libasprintf/autosprintf.cc
++++ b/gettext-runtime/libasprintf/autosprintf.cc
+@@ -19,8 +19,10 @@
+ This must come before <config.h> because <config.h> may include
+ <features.h>, and once <features.h> has been included, it's too late. */
+ #ifndef _GNU_SOURCE
++#ifndef _WIN32
+ # define _GNU_SOURCE 1
+ #endif
++#endif
+
+ /* Specification. */
+ #include "autosprintf.h"