Re: [net-tools-devel] [PATCH] Makefile: Add '-lintl' when building with I18N support
Linux networking base tools
Brought to you by:
eckes
|
From: Eric N. V. W. <er...@gm...> - 2016-03-10 16:49:22
|
On Sat, Mar 5, 2016 at 10:02 AM, Bernd Eckenfels <ec...@zu...> wrote: > Hello, > > (sorry for the late moderation, missed your pending post) > > > thanks for the patch. The change seems fine, however I do wonder why I > have never seen it fail? In what context the lib is needed? I have a better understanding of what is going on after spending more time on this. On some systems (i.e., Darwin, *BSD, and Linux w/ old glibc), they libc library doesn't provide the 'libintl_gettext' and related symbols. The patch I provided will just arbitrarily add '-lint' on the link line. Please disregard this patch as it is not an adequate solution. I think the proper way to address this is to use something like autconf from the autotools system to properly detect generate the necessary flags for compiling and linking. If you think this would be worthwhile, I may be able to spare a handful of cycles of getting something initially together. > Gruss > Bernd > > Am Thu, 18 > Feb 2016 12:33:32 -0800 schrieb "Eric N. Vander Weele" > <er...@gm...>: > >> When building with I18N support, libintl is not added as a library >> when linking, which results in undefined references to >> 'libintl_gettext'. |