| allonymist ( @ 2007-04-30 23:42:00 |
| Entry tags: | coding, frustration, mingw |
commit message of the day.
For reasons which make sense to somebody, I'm sure, mingw gcc wants the libraries to appear at the end of the command line. This is done by specifying them with LDADD in Makefile.am, not LDFLAGS.
If anybody can explain to me why mingw thinks "gcc -o foo foo.o -lbar" is fine, whereas "gcc -lbar -o foo foo.o" is Doubleplusbad UnMingwThink, I'd quite appreciate it. Until then, 'll just do what seems to work, and hope we don't blunder across any other great slumbering cthonian deities of arbitrary syntax.
Man. I should re-do that in the form of Xanadu or something:
In min-g-win did automake a messy linker line decree
Where "-l" the romping option ran
Through lines that seemed unchanged to man
Down to a sundered C.