Fixing linking on macOS - iconv lib would not get picked up#260
Fixing linking on macOS - iconv lib would not get picked up#260mauritium wants to merge 1 commit intodovecot:mainfrom
Conversation
…, need to add explicitly where needed
|
This library isn't wanted/needed with Linux. So it should be somehow conditionally added by a configure check. |
|
Aah, I didn't know that. Unfortunately, I have little knowledge of autoconf/automake. My first impression, however, is that core/src/lib-charset/charset-iconv.c Line 7 in 06af539 I regret this is beyond my expertise, and I also lack the context/background on what's needed for dovecot specifically. The fact is, however, that in its current form the code fails to build on macOS because somehow iconv code is compiled but not linked with the iconv library. |
|
We'll take a look on how to fix this. |
|
Thanks! I notice that core/src/lib-charset/test-charset.c Line 63 in 06af539 HAVE_ICONV, but this does not seem to be defined anywhere.
|
Fixing linking on macOS - iconv lib would not get picked up by linker, need to add
-liconvexplicitly where needed