]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
filter/texttotext.c: link with libiconv if needed 155/head
authorCarlos Santos <unixmania@gmail.com>
Mon, 22 Jul 2019 02:54:29 +0000 (23:54 -0300)
committerCarlos Santos <unixmania@gmail.com>
Mon, 16 Sep 2019 03:48:48 +0000 (00:48 -0300)
commit734ef160b428c545d8c6ae16c4bfe3c036173aa4
treefeb1b311e377f0210589ce36658fae3f1af20c42
parentde9e74f869763e876a2f5c0a50f86a68da869c31
filter/texttotext.c: link with libiconv if needed

texttotext.c uses iconv so it should link with libiconv on platforms
where it is a separate library (e.g. uClibc-ng without built-in NLS)
otherwise texttotext fails to link:

  CCLD     texttotext
[...]/ld: texttotext-texttotext.o: in function `main':
texttotext.c:(.text.startup+0xde0): undefined reference to `libiconv_open'
[...]/ld: texttotext.c:(.text.startup+0xf9d): undefined reference to `libiconv'
[...]/ld: texttotext.c:(.text.startup+0xfd6): undefined reference to `libiconv'
[...]/ld: texttotext.c:(.text.startup+0x16c3): undefined reference to `libiconv_close'

Modify autogen.sh to call autopoint, which adds the libiconv discovery.
It also creates a "po" skeleton but we can discard it, since it is not
really necessary.

Fixes: https://bugs.busybox.net/show_bug.cgi?id=12031
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Makefile.am
autogen.sh
configure.ac