diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-24 01:15:25 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:32 +0200 |
commit | d46dc8bc88e38251bfa3712efe7abf62933f5419 (patch) | |
tree | 2d608c443d752fc7294cbeb8f3a57143047d4417 /utils | |
parent | c8eb6b4c7a9f84f6fd902654509dc32741dc9e6c (diff) |
iconv: Do not include __iconv_codesets into iconv utility
Host iconv needs only L_iconv_main defined and __iconv_codesets
has to included, as host system does not provide it.
Keep __iconv_codesets out of iconv linked against uClibc.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.in | 3 | ||||
-rw-r--r-- | utils/iconv.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/utils/Makefile.in b/utils/Makefile.in index bb85be3ce..1714d2866 100644 --- a/utils/Makefile.in +++ b/utils/Makefile.in @@ -36,8 +36,7 @@ CFLAGS-ldd := $(CFLAGS-utils-shared) -DBUILDING_LINKAGE # Need CFLAGS-utils explicitly, because the source file is not located in utils CFLAGS-iconv := $(CFLAGS-utils) \ $(CFLAGS-utils-shared) \ - -I$(top_srcdir)libc/misc/wchar \ - -DL_iconv_main \ + -I$(top_srcdir)libc/misc/wchar CFLAGS-locale := $(CFLAGS-utils) CFLAGS-getconf :=$(CFLAGS-utils) \ diff --git a/utils/iconv.c b/utils/iconv.c index 04e2c32eb..a0260df93 100644 --- a/utils/iconv.c +++ b/utils/iconv.c @@ -108,7 +108,12 @@ #include <wchar.h> #include "wchar.c" /* for _UC_iconv_t and __iconv_codesets */ -extern const unsigned char __iconv_codesets[]; +#ifdef L_iconv_main +static +#else +extern +#endif +const unsigned char __iconv_codesets[]; #define IBUF BUFSIZ #define OBUF BUFSIZ |