(main): Use I18NLIBS instead of hardcoding library names.
Showing
1 changed file
with
6 additions
and
3 deletions
... | @@ -119,9 +119,12 @@ main (int argc, char **argv) | ... | @@ -119,9 +119,12 @@ main (int argc, char **argv) |
119 | asprintf (&entry[n].ptr, "%s -lmailbox", LINK_FLAGS); | 119 | asprintf (&entry[n].ptr, "%s -lmailbox", LINK_FLAGS); |
120 | n++; | 120 | n++; |
121 | #ifdef ENABLE_NLS | 121 | #ifdef ENABLE_NLS |
122 | entry[n].level = 10; | 122 | if (sizeof (I18NLIBS) > 1) |
123 | asprintf (&entry[n].ptr, "-lintl -liconv"); | 123 | { |
124 | n++; | 124 | entry[n].level = 10; |
125 | asprintf (&entry[n].ptr, I18NLIBS); | ||
126 | n++; | ||
127 | } | ||
125 | #endif | 128 | #endif |
126 | for (; n < sizeof(entry)/sizeof(entry[0]) && argc > 0; | 129 | for (; n < sizeof(entry)/sizeof(entry[0]) && argc > 0; |
127 | argc--, argv++, n++) | 130 | argc--, argv++, n++) | ... | ... |
-
Please register or sign in to post a comment