Revert "minor fix"
This reverts commit 88e5438cd6784ebce0053bbbc54795ba8f99b9eb.
diff --git a/brewery.py b/brewery.py
index 7f49a40..9d60373 100644
--- a/brewery.py
+++ b/brewery.py
@@ -483,13 +483,13 @@
' '.join([Env.LINK_STATIC, archive_file] + obj_files)]
if self.build_binary:
link_binary_commands = [
- ' '.join([Env.LINK_BINARY, self.OutputName(), Env.LINKFLAGS]
- + self.cc_obj_files)]
+ ' '.join([Env.LINK_BINARY, self.OutputName()] + self.cc_obj_files +
+ [Env.LINKFLAGS])]
self.command_groups = [cpp_commands, link_commands, link_binary_commands]
elif self.shared:
link_shared_commands = [' '.join(
[Env.LINK_SHARED, self.OutputName(is_library=True, is_shared=True)]
- + obj_files + [Env.LINKFLAGS] + self.cc_obj_files[1:])]
+ + obj_files + self.cc_obj_files[1:] + [Env.LINKFLAGS])]
self.command_groups = [cpp_commands, link_commands, link_shared_commands]
else:
self.command_groups = [cpp_commands, link_commands]