mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 13:23:08 +00:00
9e81836b81
.. they're needed for the RPC generation in glibc on both Cygwin and MinGW-w64. Neither are built on GNU/Linux and iconv is not built on Darwin. Two patches for gettext are needed, one so that -O0 works and one so that static builds can be made. They can take a good while to build, so if not needed for_host or for_build then they are not built. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
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(+)
|
|
|
|
diff --git a/gettext-runtime/libasprintf/autosprintf.cc b/gettext-runtime/libasprintf/autosprintf.cc
|
|
index ca318f7..2526210 100644
|
|
--- 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"
|
|
--
|
|
1.8.4
|
|
|