Commit 1a4dc39
committed
makefile: add LDLIBS to handle -liconv correctly
The previous commit was done with mingw. And it can not be compiled at
first. Gcc told me he can not find libiconv even if i added -liconv into
LDFLAGS.
https://stackoverflow.com/questions/13249610/how-to-use-ldflags-in-makefile
, and i found this article. The original position of LDFLAGS seems to
only be considered at the compiling stage. But what we gonna go through is
the linking stage, which makes -lxxx in LDFLAGS useless.
So i added LDLIBS to the end of line. By the way, -liconv is set by
default for compatibility. And mingw now works well with gettext-tiny.1 parent 7698cca commit 1a4dc39
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments