mirror of https://git.kore.io/kore.git
Properly order linker arguments.
Fixes broken linkages with LDFLAGS on certain platforms see #23.
This commit is contained in:
parent
280cd6791e
commit
9184257d97
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue