Properly order linker arguments.

Fixes broken linkages with LDFLAGS on certain platforms see #23.
This commit is contained in:
Joris Vink 2014-11-19 14:20:31 +01:00
parent 280cd6791e
commit 9184257d97
1 changed files with 3 additions and 3 deletions

View File

@ -898,12 +898,12 @@ cli_link_library(void *arg)
args[idx++] = "-shared";
#endif
for (i = 0; i < f; i++)
args[idx++] = flags[i];
TAILQ_FOREACH(cf, &source_files, list)
args[idx++] = cf->opath;
for (i = 0; i < f; i++)
args[idx++] = flags[i];
args[idx++] = "-o";
args[idx++] = libname;
args[idx] = NULL;