Skip to content

Commit

Permalink
[C] Reorder linker args again, to fix another static linking bug.
Browse files Browse the repository at this point in the history
Bug 661570.

 * Compiler/GNUCompiler.cs: Move object files first in linker command line.

License: MIT/X11
  • Loading branch information
Levi Bard authored and slluis committed Apr 11, 2011
1 parent 4dbf736 commit d33362a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/addins/CBinding/Compiler/GNUCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ private void MakeBin (Project project,
}

string linker_args = string.Format ("-o \"{0}\" {1} {2} {3}",
outputName, pkgargs, objectFiles, args.ToString ());
outputName, objectFiles, pkgargs, args.ToString ());

monitor.BeginTask (GettextCatalog.GetString ("Generating binary \"{0}\" from object files", Path.GetFileName (outputName)), 1);

Expand Down Expand Up @@ -464,7 +464,7 @@ private void MakeSharedLibrary(Project project,
}

string linker_args = string.Format ("-shared -o \"{0}\" {1} {2} {3}",
outputName, pkgargs, objectFiles, args.ToString ());
outputName, objectFiles, pkgargs, args.ToString ());

monitor.BeginTask (GettextCatalog.GetString ("Generating shared object \"{0}\" from object files", Path.GetFileName (outputName)), 1);

Expand Down

0 comments on commit d33362a

Please sign in to comment.