Commit 770c92dc 770c92dcbeae05456848cbb696d7d7c5abd8df3d by Sergey Poznyakoff

(main): Use I18NLIBS instead of hardcoding library names.

1 parent 3e6b6922
...@@ -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++)
......